Paradigm.Graph protocol (paradigm v0.3.0)
Defines the protocol for Graph implementations. This decouples operations (conformance, abstraction, transforms) from the underlying graph storage.
Summary
Types
@type class_id() :: Paradigm.id()
@type node_id() :: Paradigm.id()
@type t() :: term()
All the types that implement this protocol.
Functions
@spec insert_node(t(), Paradigm.Graph.Node.t()) :: t()
@spec insert_nodes(t(), [Paradigm.Graph.Node.t()]) :: t()
@spec stream_all_nodes(t()) :: Enumerable.t(Node.t())