Class GraphPath<TNode, TLink>
A path consists of a series of adjacent links.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public class GraphPath<TNode, TLink>
where TNode : new()
where TLink : new()
Type Parameters
TNode
|
TLink
|
Constructors
GraphPath()
GraphPath(GraphPath<TNode, TLink>)
Initializes a new instance of the GraphPath<TNode, TLink> class.
Declaration
public GraphPath(GraphPath<TNode, TLink> path)
Parameters
GraphPath<TNode, TLink>
path
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
public IList<object> Elements { get; set; }
Property Value
System.Collections.Generic.IList<System.Object>
|
Links
Gets or sets the links of this path.
Declaration
public IList<TLink> Links { get; set; }
Property Value
System.Collections.Generic.IList<TLink>
The links this path is made of. |
Nodes
Gets or sets the nodes of this path.
Declaration
public IList<TNode> Nodes { get; }
Property Value
System.Collections.Generic.IList<TNode>
The nodes this path is made of. |
PathLength
Gets length of this path (i.e. the amount of links).
Declaration
public int PathLength { get; }
Property Value
System.Int32
|
Methods
Add(TLink, TNode)
Adds a links and a node to this path.
Declaration
public void Add(TLink edge, TNode node)
Parameters
TLink
edge
The layout link. |
TNode
node
The node. |
AddLink(TLink)
Adds a link to this path.
Declaration
public void AddLink(TLink link)
Parameters
TLink
link
The link. |
AddNode(TNode)
Adds a node to this path.
Declaration
public void AddNode(TNode node)
Parameters
TNode
node
The node. |
Reverse()
Reverses the nodes sequence.
Declaration
public void Reverse()