Interface IEdge<TEdge, TNode>
The contract for on edge of the network
with references to their weighs and attributes.
Namespace: Mars.Interfaces.Environments
Assembly: Mars.Interfaces.dll
Syntax
public interface IEdge<TEdge, out TNode> : IGraphEntity, IEqualityComparer<IGraphEntity> where TEdge : IEdge<TEdge, TNode> where TNode : INode<TEdge, TNode>
Type Parameters
Name | Description |
---|---|
TEdge | The concrete edge type which implements this interface. |
TNode | The concrete node type which implements this interface. |
Properties
From
The starting point (node) of the edge
Declaration
TNode From { get; }
Property Value
Type | Description |
---|---|
TNode |
To
The end point (node) of the edge
Declaration
TNode To { get; }
Property Value
Type | Description |
---|---|
TNode |