Boltx.Types.Path (Boltx v0.0.4)

Self-contained graph path.

A Path is a sequence of alternating nodes and relationships corresponding to a walk in the graph. The path always begins and ends with a node. Its representation consists of a list of distinct nodes, a list of distinct relationships and a sequence of integers describing the path traversal

https://github.com/boltprotocol/boltprotocol/blob/master/v1/_serialization.asciidoc#path

Summary

Functions

represents a traversal or walk through a graph and maintains a direction separate from that of any relationships traversed

Types

@type t() :: %Boltx.Types.Path{
  nodes: list() | nil,
  relationships: list() | nil,
  sequence: list() | nil
}

Functions

@spec graph(t()) :: list() | nil

represents a traversal or walk through a graph and maintains a direction separate from that of any relationships traversed