AttractorEx.Edge (attractor_phoenix v0.1.0)

Copy Markdown View Source

Runtime representation of a directed edge between two nodes.

In addition to the raw attribute map, edges expose normalized condition and status fields used directly by the routing logic in AttractorEx.Engine.

Summary

Functions

Builds a normalized edge struct from raw DOT attributes.

Types

t()

@type t() :: %AttractorEx.Edge{
  attrs: map(),
  condition: String.t() | nil,
  from: String.t(),
  status: String.t() | nil,
  to: String.t()
}

Functions

new(from, to, attrs)

Builds a normalized edge struct from raw DOT attributes.