Graphex

Summary

exec_graph(components)

Generate and execute a graph and return the results for all vertices

exec_graph(key, components)

Generate and execute a graph and return the results for the given result_key

graph(components)

Generate a graph. Returns a new graph or {:error, message} if there is a problem constructing the graph

Types

component :: [Keyword]

A component is a keyword list with a name, fun and optionally deps.

vertex :: :digraph.vertex

Identifier for a vertex

edge :: :digraph.edge

Identifier for an edge

results :: %{}

results is a collection of results from executing a graph

result_key :: atom

result_key is a key used to retrieve an item from results.

graph :: Graphex.Dag.dag

A graph

Functions

exec_graph(components)

Specs:

Generate and execute a graph and return the results for all vertices.

The graph will be automatically deleted after execution.

exec_graph(key, components)

Specs:

Generate and execute a graph and return the results for the given result_key.

The graph will be automatically deleted after execution.

graph(components)

Specs:

Generate a graph. Returns a new graph or {:error, message} if there is a problem constructing the graph.

You will need to manually delete the graph after using it.