pub fn analyze_communities(
snapshot_id: impl Into<String>,
nodes: &[Node],
edges: &[Edge],
config: CommunityConfig,
) -> Result<CommunitySnapshot, CommunityError>Expand description
Detects deterministic communities in one immutable graph snapshot.
Only confirmed edges meeting minimum_confidence participate. Relationship
weights are multiplied by edge confidence, parallel directions are summed,
and the resulting weighted graph is symmetrized before clustering. Central
nodes combine weighted PageRank (65%) and normalized weighted degree (35%),
with detected high-degree god nodes disclosed and ranked first.
ยงErrors
Returns CommunityError when configuration values, edge confidences, node
identities, or an exact service scope are invalid.