Boxart.Graph.Node (Boxart v0.3.1)

Copy Markdown View Source

A node in the graph with an id, display label, and shape.

Summary

Functions

Creates a new node. Label defaults to the id when omitted.

Types

t()

@type t() :: %Boxart.Graph.Node{
  id: String.t(),
  label: String.t() | nil,
  language: atom() | nil,
  shape: Boxart.Graph.node_shape(),
  source: String.t() | nil,
  start_line: integer()
}

Functions

new(id, opts \\ [])

@spec new(
  String.t(),
  keyword()
) :: t()

Creates a new node. Label defaults to the id when omitted.