Runic.Workflow.Serializers.Edgelist (Runic v0.1.0-alpha.7)

Copy Markdown View Source

Serializes Runic Workflows to simple edgelist format.

Produces a list of tuples {from, to, label} or a string with one edge per line.

Examples

# Get list of edge tuples
edges = Runic.Workflow.Serializers.Edgelist.serialize(workflow)
# => [{:root, :tokenize, :flow}, {:tokenize, :count_words, :flow}, ...]

# Get string format
str = Runic.Workflow.Serializers.Edgelist.to_string(workflow)
# => "root -> tokenize [flow]\ntokenize -> count_words [flow]\n..."

Summary

Functions

Returns a string representation of the edgelist.

Functions

to_string(workflow, opts \\ [])

Returns a string representation of the edgelist.