Class GraphDocument
- Namespace
- Graph1x.Serialization
- Assembly
- Graph1x.dll
A parsed graph document: the structure plus every vertex and edge attribute the source carried. Vertices are strings (the document's node ids); attribute values are typed per the document's declarations — string, bool, int, long, float, or double — boxed as object.
public sealed class GraphDocument
- Inheritance
-
GraphDocument
- Inherited Members
Properties
EdgeData
Gets each edge's attributes, indexed in document order. Correlate by document position: Graph enumerates edges grouped by source vertex, which matches document order only when the document's edges are already grouped that way (as Graph1x's own exporters emit them) — foreign documents may interleave sources freely.
public IReadOnlyList<IReadOnlyDictionary<string, object>> EdgeData { get; }
Property Value
Graph
Gets the parsed graph: a directed or undirected multigraph, the lossless superset.
public IMutableGraph<string, Edge<string>> Graph { get; }
Property Value
VertexData
Gets each vertex's attributes, keyed by vertex id then attribute name.
public IReadOnlyDictionary<string, IReadOnlyDictionary<string, object>> VertexData { get; }