MCPcopy Create free account
hub / github.com/Permify/permify / AddEdge

Method AddEdge

pkg/development/graph/graph.go:48–53  ·  view source on GitHub ↗

AddEdge - Add edge to graph

(from, to *Node)

Source from the content-addressed store, hash-verified

46
47// AddEdge - Add edge to graph
48func (g *Graph) AddEdge(from, to *Node) {
49 g.edges = append(g.edges, &Edge{
50 From: from,
51 To: to,
52 })
53}

Callers 3

EntityToGraphMethod · 0.80
buildPermissionGraphMethod · 0.80
addEdgeFromRelationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected