Class
GraphPath<TNode, TLink>

A path consists of a series of adjacent links.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Type Parameters:

TNode

TLink

Syntax:

cs-api-definition
public class GraphPath<TNode, TLink> where TNode : new() where TLink : new()

Inheritance: objectGraphPath<TNode, TLink>

Constructors

GraphPath()

Initializes a new instance of the GraphPath<TNode, TLink> class.

Declaration

cs-api-definition
public GraphPath()

GraphPath(GraphPath<TNode, TLink>)

Initializes a new instance of the GraphPath<TNode, TLink> class.

Declaration

cs-api-definition
public GraphPath(GraphPath<TNode, TLink> path)

Parameters

path

GraphPath<TNode, TLink>

The path from which a clone will be taken as a starting point for this path.

Properties

Elements

Gets or sets the collection of nodes and links this path is made of.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public IList<object> Elements { get; set; }

Property Value

IList<object>

Gets or sets the links of this path.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public IList<TLink> Links { get; set; }

Property Value

IList<TLink>

The links this path is made of.

Nodes

Gets or sets the nodes of this path.

Declaration

cs-api-definition
public IList<TNode> Nodes { get; }

Property Value

IList<TNode>

The nodes this path is made of.

PathLength

Gets length of this path (i.e. the amount of links).

Declaration

cs-api-definition
public int PathLength { get; }

Property Value

int

Methods

Add(TLink, TNode)

Adds a links and a node to this path.

Declaration

cs-api-definition
public void Add(TLink edge, TNode node)

Parameters

edge

TLink

The layout link.

node

TNode

The node.

Adds a link to this path.

Declaration

cs-api-definition
public void AddLink(TLink link)

Parameters

link

TLink

The link.

AddNode(TNode)

Adds a node to this path.

Declaration

cs-api-definition
public void AddNode(TNode node)

Parameters

node

TNode

The node.

Reverse()

Reverses the nodes sequence.

Declaration

cs-api-definition
public void Reverse()