MCPcopy Create free account
hub / github.com/diillson/chatcli / Node

Method Node

pkg/knowledge/graph.go:120–123  ·  view source on GitHub ↗

Node returns a node by ID.

(id string)

Source from the content-addressed store, hash-verified

118
119// Node returns a node by ID.
120func (g *Graph) Node(id string) (*Node, bool) {
121 n, ok := g.nodes[id]
122 return n, ok
123}
124
125// Nodes returns every node sorted by ID, for deterministic iteration (e.g. the
126// wikilink-resolution pass).

Callers 4

graphNeighborsTextMethod · 0.80
TestBuildKnowledgeGraphFunction · 0.80
handleGraphCommandMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestBuildKnowledgeGraphFunction · 0.64