Class Edge
Provides a basic implementation of an edge in a graph.
public sealed class Edge : IEdge
- Inheritance
-
Edge
- Implements
- Inherited Members
- Extension Methods
Constructors
Edge(INode, INode)
Creates a new edge in a graph.
public Edge(INode origin, INode target)
Parameters
originINodeThe node that this edge starts at in the directed graph.
targetINodeThe node that this edge points to in the directed graph.
Properties
Origin
Gets the node that this edge starts at in the directed graph.
public INode Origin { get; }
Property Value
Target
Gets the node that this edge points to in the directed graph.
public INode Target { get; }
Property Value
Methods
ToString()
public override string ToString()