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:
C#
public class GraphPath<TNode, TLink> where TNode : new() where TLink : new()
Inheritance: objectGraphPath<TNode, TLink>
Constructors
Initializes a new instance of the GraphPath<TNode, TLink> class.
C#
public GraphPath()
Properties
Gets or sets the collection of nodes and links this path is made of.
C#
public IList<object> Elements { get; set; }
Gets or sets the links of this path.
C#
public IList<TLink> Links { get; set; }
The links this path is made of.
Gets or sets the nodes of this path.
C#
public IList<TNode> Nodes { get; }
The nodes this path is made of.
Gets length of this path (i.e. the amount of links).
C#
public int PathLength { get; }
Methods
Adds a links and a node to this path.
C#
public void Add(TLink edge, TNode node)
The layout link.
nodeTNodeThe node.
Adds a link to this path.
C#
public void AddLink(TLink link)
The link.
Adds a node to this path.
C#
public void AddNode(TNode node)
The node.
Reverses the nodes sequence.
C#
public void Reverse()