View Source Fountainedge.Graph (Fountainedge v1.0.1)

Graphing functions.

Link to this section Summary

Functions

Graphs a schema as a UML Activity Diagram using Graphviz.

Ranks all nodes in a given schema.

Link to this section Functions

Graphs a schema as a UML Activity Diagram using Graphviz.

If given a workflow, the graph will be decorationed with stateful information such as the current node (or nodes.)

Ranks all nodes in a given schema.

Will set the rank field on each Fountainedge.Node within the schema.

Useful for determining backward and forward directions between two nodes. If the rank of the out edge node is less than the current node, then the direction is backwards. Otherwise, if greater, then the direction is forwards.

dot creates hierarchical or layered drawings of directed graphs. A ranking algorithmn is used to determine this heirarchy. It may be useful to use these ranks when determining direction in a workflow. Call this function to calculate ranks per each node.