Lightning.Graph (Lightning v2.13.4)

View Source

A graph model for workflows transversal.

Summary

Types

t()

@type t() :: %Lightning.Graph{edges: MapSet.t(), nodes: MapSet.t()}

Functions

add_edge(graph, map)

@spec add_edge(t(), Lightning.Workflows.Edge.t()) :: t()

new()

@spec new() :: t()

nodes(graph, opts \\ [as: []])

prune(graph, node)

@spec prune(t(), any()) :: t()

remove_edges(graph, edges)

@spec remove_edges(t(), [{any(), any()}]) :: t()

traverse(map, trigger_id)