package
0.0.0-20191230020605-0ca8b8623ec4
Repository: https://github.com/graphism/exp.git
Documentation: pkg.go.dev

# Functions

Copy copies nodes and edges as directed edges from the source to the destination without first clearing the destination.
InitDFSOrder initializes the pre- and post depth first search visit order of each node.
Merge returns a new control flow graph where the specified nodes have been collapsed into a single node with the new node name, and the predecessors and successors of the specified nodes.
NewGraph returns a new control flow graph.
NewGraphFromFunc returns a new control flow graph based on the given function.
Parse parses the given Graphviz DOT file into a control flow graph, reading from r.
ParseBytes parses the given Graphviz DOT file into a control flow graph, reading from b.
ParseFile parses the given Graphviz DOT file into a control flow graph, reading from path.
ParseString parses the given Graphviz DOT file into a control flow graph, reading from s.
SortByPost sorts the given list of nodes by post-order.
SortByRevPost sorts the given list of nodes by reverse post-order.

# Constants

endless_loop.
none.
post-test_loop.
pre-test_loop.

# Structs

Edge is an edge in a control flow graph.
Graph is a control flow graph.
Node is a node in a control flow graph.

# Type aliases

Attrs specifies a set of DOT attributes as key-value pairs.
LoopType specifies the type of a loop.