Interface IEdge<TNode, TLink>
Graph analysis link description.
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public interface IEdge<TNode, TLink>
where TNode : INode<TNode, TLink> where TLink : IEdge<TNode, TLink>
Type Parameters
TNode
The type of the node. |
TLink
The type of the link. |
Properties
Id
Gets or sets the identifier of this link.
Declaration
int Id { get; set; }
Property Value
System.Int32
The identifier. |
Sink
Gets or sets the sink of this link, i.e. the node at the end of the link.
Declaration
TNode Sink { get; set; }
Property Value
TNode
The sink node. |
Source
Gets or sets the source of this link, i.e. the node at the beginning of the link.
Declaration
TNode Source { get; set; }
Property Value
TNode
The source. |
Weight
Gets the weight of this link.
Declaration
double Weight { get; set; }
Property Value
System.Double
|
Methods
Clone()
Returns a shallow copy of this link.
Declaration
TLink Clone()
Returns
TLink
|
GetComplementaryNode(INode<TNode, TLink>)
Gets the other node of this link.
Declaration
TNode GetComplementaryNode(INode<TNode, TLink> node)
Parameters
INode<TNode, TLink>
node
The complementary node which defines this link. |
Returns
TNode
|
Reverse()
Inverts this link by changing its direction.
Declaration
void Reverse()