Interface
IEdge<TNode, TLink>

Graph analysis link description.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Type Parameters:

TNode

The type of the node.

TLink

The type of the link.

Syntax:

cs-api-definition
public interface IEdge<TNode, TLink> where TNode : INode<TNode, TLink> where TLink : IEdge<TNode, TLink>

Properties

Id

Gets or sets the identifier of this link.

Declaration

cs-api-definition
int Id { get; set; }

Property Value

int

The identifier.

Sink

Gets or sets the sink of this link, i.e. the node at the end of the link.

Declaration

cs-api-definition
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

cs-api-definition
TNode Source { get; set; }

Property Value

TNode

The source.

Weight

Gets the weight of this link.

Declaration

cs-api-definition
double Weight { get; set; }

Property Value

double

Methods

Clone()

Returns a shallow copy of this link.

Declaration

cs-api-definition
TLink Clone()

Returns

TLink

GetComplementaryNode(INode<TNode, TLink>)

Gets the other node of this link.

Declaration

cs-api-definition
TNode GetComplementaryNode(INode<TNode, TLink> node)

Parameters

node

INode<TNode, TLink>

The complementary node which defines this link.

Returns

TNode

Reverse()

Inverts this link by changing its direction.

Declaration

cs-api-definition
void Reverse()