blueprint v0.3.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 type
styler()
styler() :: ({:node, graph_node()} | {:connection, connection()} -> keyword())
Link to this section Functions
Link to this function
save!(dot, path \\ "graph.dot")
Write the DOT graph to a file.
Convert a node graph into a DOT graph.
Options can be provided to change the resulting graph. These options are:
:labeler
- A function of typelabeler
, 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 typestyler
where a node or connection is passed the function and is expected to return any styling changes to overwrite the defaults with.:group
- Define the grouping of nodes based on app or mod