edgesFrom returns a list of integers that each represents a node that has an edge from node u.
(u int)
| 34 | // edgesFrom returns a list of integers that each |
| 35 | // represents a node that has an edge from node u. |
| 36 | edgesFrom(u int) []int |
| 37 | } |
| 38 | |
| 39 | // IsAcyclic uses depth-first search to find cycles |