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