Boxart.Graph.Edge (Boxart v0.3.2)

Copy Markdown View Source

A directed edge connecting two nodes.

Summary

Functions

Returns true when both ends have arrows.

Returns true when source and target are the same node.

Types

t()

@type t() :: %Boxart.Graph.Edge{
  arrow_type_end: Boxart.Graph.arrow_type(),
  arrow_type_start: Boxart.Graph.arrow_type(),
  has_arrow_end: boolean(),
  has_arrow_start: boolean(),
  label: String.t(),
  min_length: pos_integer(),
  source: String.t(),
  style: Boxart.Graph.edge_style(),
  target: String.t()
}

Functions

bidirectional?(arg1)

@spec bidirectional?(t()) :: boolean()

Returns true when both ends have arrows.

self_reference?(arg1)

@spec self_reference?(t()) :: boolean()

Returns true when source and target are the same node.