Interface INode<TNode, TLink>
Graph analysis node description.
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public interface INode<TNode, TLink>
where TNode : INode<TNode, TLink> where TLink : IEdge<TNode, TLink>
Type Parameters
TNode
The type of the node. |
TLink
The type of the link. |
Properties
AllLinks
Gets all links bounds to this node.
Declaration
IList<TLink> AllLinks { get; }
Property Value
System.Collections.Generic.IList<TLink>
All links. |
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
System.Collections.Generic.IEnumerable<TNode>
The children collection. |
Remarks
See Also
Degree
Returns the total number of links attached.
Declaration
int Degree { get; }
Property Value
System.Int32
|
See Also
Id
Gets or sets the (supposed unique) identifier.
Declaration
int Id { get; set; }
Property Value
System.Int32
The identifier of this node. |
Incoming
Gets the incoming links, i.e. the links towards this node.
Declaration
IList<TLink> Incoming { get; }
Property Value
System.Collections.Generic.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
System.Boolean
|
IsRoot
Gets or sets whether this node is the root of a tree.
Declaration
bool IsRoot { get; set; }
Property Value
System.Boolean
|
Neighbors
Declaration
IEnumerable<TNode> Neighbors { get; }
Property Value
System.Collections.Generic.IEnumerable<TNode>
All the neighbors nodes of this node. |
See Also
Outgoing
Gets the outgoing links, i.e. the links leaving this node.
Declaration
IList<TLink> Outgoing { get; }
Property Value
System.Collections.Generic.IList<TLink>
The outgoing. |
Parents
Gets the parent nodes attached to this node.
Declaration
IEnumerable<TNode> Parents { get; }
Property Value
System.Collections.Generic.IEnumerable<TNode>
The parent collection. |
Remarks
See Also
Methods
AddIncomingEdge(TLink)
Adds an incoming link.
Declaration
void AddIncomingEdge(TLink edge)
Parameters
TLink
edge
The link to add. |
AddOutgoingEdge(TLink)
Adds an outgoing link.
Declaration
void AddOutgoingEdge(TLink edge)
Parameters
TLink
edge
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
TLink
edge
The edge to remove. |
RemoveLink(TLink)
Removes a link from this node.
Declaration
void RemoveLink(TLink link)
Parameters
TLink
link
The link. |
RemoveOutgoingEdge(TLink)
Removes the given outgoing edge.
Declaration
void RemoveOutgoingEdge(TLink edge)
Parameters
TLink
edge
The edge to remove. |