StatesLanguage.Graph (StatesLanguage v0.3.0) View Source

Functions for creating a Graph structure from deserialized JSON. This is used by Serializers and the core library. See StatesLanguage.Serializer.D3Graph.

Link to this section Summary

Link to this section Types

Specs

t() :: %StatesLanguage.Graph{
  comment: String.t(),
  edges: [StatesLanguage.Edge.t()],
  nodes: %{required(String.t()) => StatesLanguage.Node.t()},
  start: String.t()
}

Link to this section Functions

Specs

serialize(map()) :: t()