Interface INetworkWriter<TNodeId, TEdgeId, TSource>
- Namespace
- SpatialNET.Network
- Assembly
- SpatialNET.Network.dll
Where the network builder writes the network, implemented by the host (a database) or by InMemoryGraph (ADR 0050).
All nodes are written before the first edge.
public interface INetworkWriter<TNodeId, TEdgeId, TSource> where TNodeId : notnull, IEquatable<TNodeId> where TEdgeId : notnull, IEquatable<TEdgeId>Type Parameters
TNodeId-
The host's node id.
TEdgeId-
The host's edge id.
TSource-
The host's reference to a source object.
Methods
WriteEdge(in BuiltEdge<TNodeId, TEdgeId, TSource>)
Writes an edge.
void WriteEdge(in BuiltEdge<TNodeId, TEdgeId, TSource> edge)Parameters
edgeBuiltEdge<TNodeId, TEdgeId, TSource>
WriteNode(in BuiltNode<TNodeId, TSource>)
Writes a node.
void WriteNode(in BuiltNode<TNodeId, TSource> node)Parameters
nodeBuiltNode<TNodeId, TSource>