GetNeighbors returns the node's neighbors
()
| 29 | |
| 30 | // GetNeighbors returns the node's neighbors |
| 31 | func (n *Node) GetNeighbors() []*Node { |
| 32 | return n.neighbors |
| 33 | } |
| 34 | |
| 35 | // Traverse performs a depth-first traversal of the graph starting from the node |
| 36 | func (n *Node) Traverse(visited map[string]bool) { |
no outgoing calls