comp

package
v0.0.0-...-261d6aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 3 Imported by: 2

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.

func MotherNode

func MotherNode(graph gcontract.Graph) gcontract.Node

MotherNode finds a node from which every other node in the graph is accessible. in the graph is accessible.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL