blueprint v0.1.0 Blueprint.Plot.Graph
Convenient functions for building simple node dependency graphs.
Link to this section Summary
Link to this section Types
Link to this type
connection()
connection() :: {graph_node(), graph_node()} | {graph_node(), graph_node(), meta()}
Link to this section Functions
Link to this function
save!(dot, path \\ "graph.dot")
Write the DOT graph to a file.
Link to this function
to_dot(graph, opts \\ [])
Convert a node graph into a DOT graph.
Options can be provided to change the resulting graph. These options are:
:labeler
- A function of type(any -> String.t)
, where the node is passed to the function and is expected to receive a string that will be used on the graph to label it as a result.:styler
- A function of type(node_element | connection_element -> keyword())
wherenode_element
is of type{ :node, node }
andconnection_element
is of type{ :connection, connection }
.