Zog.IO (Zog v0.1.0)
View SourceI/O utilities for loading and dumping graphs.
Summary
Functions
Dumps a graph to a file in the specified format.
Loads a graph from a file directly into a Zog.ResourceGraph resource.
Functions
@spec dump(Zog.ResourceGraph.t() | Zog.SoA.t(), Path.t(), keyword()) :: :ok
Dumps a graph to a file in the specified format.
Supported options:
:format- The format to write the file in. One of:edgelist(default),:csv,:pajek,:adjlist,:tgf.
@spec load( Path.t(), keyword() ) :: Zog.ResourceGraph.t()
Loads a graph from a file directly into a Zog.ResourceGraph resource.
Supported options:
:format- The format of the file. One of:edgelist(default),:csv,:adjlist,:tgf.:directed- Boolean flag indicating if the graph is directed. Defaults totrue.