Interface IEdge<TVertex>
An edge connecting two vertices. Edge values are ordered pairs; undirected semantics (where a-b and b-a denote the same connection) are applied by the graph that stores the edge, not by the edge itself.
public interface IEdge<TVertex> where TVertex : notnull
Type Parameters
TVertexThe vertex type.
Properties
Source
Gets the vertex the edge starts at.
TVertex Source { get; }
Property Value
- TVertex
Target
Gets the vertex the edge ends at.
TVertex Target { get; }
Property Value
- TVertex