This method is not documented.
list | $nodes | A list of nodes. |
dict | A map of nodes to the nodes reachable along their edges. There must be an entry for each node you were provided. |
dict | $nodes | A map of nodes to the nodes reachable along their edges. |
This method is not documented.
scalar | $node | The node to walk from, looking for graph cycles. |
list|null | Returns null if no cycles are reachable from the node, or a list of nodes that form a cycle. |
scalar | $node | The node to walk from. |
list | $visited | Previously visited nodes. |
null|list | Null if no cycles are found, or a list of nodes which cycle. |
This method is not documented.