Versions in this module Expand all Collapse all v0 v0.2.0 Apr 13, 2026 v0.1.0 Apr 11, 2026 Changes in this version + func AuthorityScore(nodeID string, edges []*graph.Edge) int + func CohesionScore(members []string, adj map[string]map[string]bool) float64 + func EdgesByConfidence(edges []*graph.Edge) map[graph.Confidence][]*graph.Edge + func EdgesByType(edges []*graph.Edge) map[string][]*graph.Edge + func HubScore(nodeID string, edges []*graph.Edge) int + func InferredEdges(edges []*graph.Edge) []*graph.Edge + func IsolatedNodes(nodes []*graph.Node, edges []*graph.Edge, threshold int, excludeTypes []string) []*graph.Node + func NodesByType(nodes []*graph.Node) map[string][]*graph.Node + type ClusterAlgorithm string + const AlgorithmConnectedComponents + const AlgorithmLouvain + type ClusterOptions struct + Algorithm ClusterAlgorithm + ExcludeEdgeTypes []string + ExcludeNodeTypes []string + Resolution float64 + func DefaultClusterOptions() ClusterOptions + type ClusterResult struct + Communities []Community + Modularity float64 + NodeCommunity map[string]int + func DetectCommunities(nodes []*graph.Node, edges []*graph.Edge) *ClusterResult + func DetectCommunitiesWithOptions(nodes []*graph.Node, edges []*graph.Edge, opts ClusterOptions) *ClusterResult + func LouvainToClusters(result *LouvainResult, nodes []*graph.Node, edges []*graph.Edge) *ClusterResult + type Community struct + Cohesion float64 + ID int + Label string + Members []string + Size int + type EdgeChange struct + Confidence string + From string + To string + Type string + type GraphDiff struct + NewEdges []EdgeChange + NewNodes []NodeChange + RemovedEdges []EdgeChange + RemovedNodes []NodeChange + Summary string + func DiffGraphs(oldNodes, newNodes []*graph.Node, oldEdges, newEdges []*graph.Edge) *GraphDiff + type HubNode struct + ID string + InDegree int + Label string + OutDegree int + Total int + Type string + func FindHubs(nodes []*graph.Node, edges []*graph.Edge, topN int, excludeTypes []string) []HubNode + type LouvainOptions struct + ExcludeEdgeTypes []string + ExcludeNodeTypes []string + Resolution float64 + Seed uint64 + func DefaultLouvainOptions() LouvainOptions + type LouvainResult struct + Communities map[int][]string + Modularity float64 + NodeCommunity map[string]int + NumLevels int + func DetectCommunitiesLouvain(nodes []*graph.Node, edges []*graph.Edge, opts LouvainOptions) *LouvainResult + type NodeChange struct + ID string + Label string + Type string