Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cycle ¶
func Cycle(graph gcontract.Graph) *collection.NodeStack
Cycle finds a cycle in a graph if there is at least one.
func KosarajuSCC ¶
func KosarajuSCC(graph contract.Graph) []*collection.Nodes
KosarajuSCC finds strongly connected components of a graph using the Sambasiva Rao Kosaraju's algorithm.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.