Versions in this module Expand all Collapse all v0 v0.3.0 May 9, 2026 v0.2.0 Apr 20, 2026 Changes in this version + func FormatExplanation(e *NodeExplanation) string + type CentralityInfo struct + Betweenness float64 + BetweennessRank int + IsBridge bool + IsHub bool + type CommunityInfo struct + BridgesCommunities []int + CommunityID int + CommunityLabel string + CommunitySize int + IsBridge bool + type DepthLayer struct + Count int + Depth int + Nodes []string + type EdgeFilter struct + From string + Limit int + NodeID string + To string + Type string + Types []string + type EdgeInfo struct + Confidence string + From string + To string + Type string + type EdgeListOutput struct + Edges []EdgeOutputWithMeta + Matches int + Message string + Query string + Truncated bool + func FilterEdges(edges []*graph.Edge, filter EdgeFilter) *EdgeListOutput + type EdgeOutput struct + From string + To string + Type string + type EdgeOutputWithMeta struct + Confidence string + From string + To string + Type string + type ExplainOptions struct + Depth int + IncludeEdges bool + MaxNeighbors int + func DefaultExplainOptions() ExplainOptions + type FormatTraversalOptions struct + Algorithm string + Direction string + Limit int + type GodNode struct + EdgeCount int + ID string + type NeighborInfo struct + EdgeTypeBreakdown map[string]int + InDegree int + IncomingEdges []EdgeInfo + OutDegree int + OutgoingEdges []EdgeInfo + TotalDegree int + type NodeExplanation struct + Centrality CentralityInfo + Community CommunityInfo + Neighbors NeighborInfo + Node NodeInfo + Package string + SourceFile string + func ExplainNode(nodes []*graph.Node, edges []*graph.Edge, nodeID string, opts ExplainOptions) (*NodeExplanation, error) + func ExplainNodeInGraph(g *graph.Graph, nodeID string, opts ExplainOptions) (*NodeExplanation, error) + type NodeInfo struct + Attrs map[string]string + ID string + Label string + Type string + type NodeMatch struct + Matches []string + Message string + Query string + func FindPartialMatches(g *graph.Graph, query string, limit int) *NodeMatch + type PathOutput struct + Edges []EdgeOutput + Found bool + From string + Length int + Message string + Path []string + To string + func FormatPath(result *gquery.TraversalResult, from, to string) *PathOutput + type Summary struct + EdgeTypes map[string]int + GodNodes []GodNode + NodeTypes map[string]int + TotalEdges int + TotalNodes int + func ComputeSummary(g *graph.Graph) *Summary + func ComputeSummaryFromLists(nodes []*graph.Node, edges []*graph.Edge) *Summary + func ComputeSummaryWithOptions(g *graph.Graph, opts SummaryOptions) *Summary + type SummaryOptions struct + ExcludeContains []string + ExcludePrefixes []string + MaxGodNodes int + func DefaultSummaryOptions() SummaryOptions + type TraversalOutput struct + Algorithm string + Direction string + Edges []EdgeOutput + EdgesFound int + Layers []DepthLayer + MaxDepth int + NodesFound int + Query string + func FormatTraversal(result *gquery.TraversalResult, startNode string, maxDepth int, ...) *TraversalOutput