MCPcopy Create free account
hub / github.com/RedisGraph/redisgraph-go / AddNode

Method AddNode

graph.go:42–48  ·  view source on GitHub ↗

AddNode adds a node to the graph.

(n *Node)

Source from the content-addressed store, hash-verified

40
41// AddNode adds a node to the graph.
42func (g *Graph) AddNode(n *Node) {
43 if n.Alias == "" {
44 n.Alias = RandomString(10)
45 }
46 n.graph = g
47 g.Nodes[n.Alias] = n
48}
49
50// AddEdge adds an edge to the graph.
51func (g *Graph) AddEdge(e *Edge) error {

Callers 3

createGraphFunction · 0.80
TestQueryStatisticsFunction · 0.80
TestNodeMapDatatypeFunction · 0.80

Calls 1

RandomStringFunction · 0.85

Tested by 3

createGraphFunction · 0.64
TestQueryStatisticsFunction · 0.64
TestNodeMapDatatypeFunction · 0.64