InterfaceINode<TNode, TLink>
Graph analysis node 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:
public interface INode<TNode, TLink> where TNode : INode<TNode, TLink> where TLink : IEdge<TNode, TLink>
Properties
AllLinks
Gets all links bounds to this node.
BoundingRectangle
Gets or sets the bounding rectangle.
Declaration
Rect BoundingRectangle { get; set; }
Property Value
Rect
The bounding rectangle.
Remarks
This defines the location as well as the size of the shape as a result of a layout process.
Children
Gets the children nodes attached to this node.
Declaration
IEnumerable<TNode> Children { get; }
Property Value
IEnumerable<TNode>
The children collection.
Remarks
Degree
Returns the total number of links attached.
Id
Gets or sets the (supposed unique) identifier.
Incoming
Gets the incoming links, i.e. the links towards this node.
Declaration
IList<TLink> Incoming { get; }
Property Value
IList<TLink>
The incoming links.
IsDirected
Gets or sets a value indicating whether this node is part of directed graph.
Declaration
bool IsDirected { get; set; }
Property Value
true if this instance is directed; otherwise, false.
IsRoot
Gets or sets whether this node is the root of a tree.
Declaration
bool IsRoot { get; set; }
Property Value
true if this instance is root; otherwise, false.
Neighbors
Declaration
IEnumerable<TNode> Neighbors { get; }
Property Value
IEnumerable<TNode>
All the neighbors nodes of this node.
Outgoing
Gets the outgoing links, i.e. the links leaving this node.
Declaration
IList<TLink> Outgoing { get; }
Property Value
IList<TLink>
The outgoing.
Parents
Gets the parent nodes attached to this node.
Declaration
IEnumerable<TNode> Parents { get; }
Property Value
IEnumerable<TNode>
The parent collection.
Remarks
Methods
AddIncomingEdge(TLink)
Adds an incoming link.
Declaration
void AddIncomingEdge(TLink edge)
Parameters
edge
TLink
The link to add.
AddOutgoingEdge(TLink)
Adds an outgoing link.
Declaration
void AddOutgoingEdge(TLink edge)
Parameters
edge
TLink
The link to add.
Clone()
Returns a shallow copy of this node.
Declaration
TNode Clone()
Returns
TNode
RemoveIncomingEdge(TLink)
Removes an incoming edge.
Declaration
void RemoveIncomingEdge(TLink edge)
Parameters
edge
TLink
The edge to remove.
RemoveLink(TLink)
Removes a link from this node.
Declaration
void RemoveLink(TLink link)
Parameters
link
TLink
The link.
RemoveOutgoingEdge(TLink)
Removes the given outgoing edge.
Declaration
void RemoveOutgoingEdge(TLink edge)
Parameters
edge
TLink
The edge to remove.