Zog.Community.Result (Zog v0.1.0)
View SourceResult of community detection algorithms.
Summary
Functions
Backward compatibility: convert from legacy map format.
Creates a community result from an assignments map.
Creates a community result with explicit metadata and optional pre-computed values.
Convert to legacy map format.
Types
@type community_id() :: any()
@type node_id() :: any()
@type t() :: %Zog.Community.Result{ assignments: %{required(node_id()) => community_id()}, metadata: map(), num_communities: non_neg_integer() }
Functions
Backward compatibility: convert from legacy map format.
@spec new(%{required(node_id()) => community_id()}) :: t()
Creates a community result from an assignments map.
@spec new(%{required(node_id()) => community_id()}, map(), keyword()) :: t()
Creates a community result with explicit metadata and optional pre-computed values.
Convert to legacy map format.