documentationfor yFiles for HTML 2.6

Represents a so-called node in the directed graph data type Graph.

Inheritance Hierarchy

Remarks

Most notably, a node provides access to its adjacent edges (represented by instances of class Edge). These can be distinguished into the sets of incoming and outgoing edges.

Iteration over all three sets of edges is provided by means of bidirectional cursors that present a read-only view of the respective set (getEdgeCursor, getInEdgeCursor, getOutEdgeCursor). Also supported is iteration over all nodes at opposite ends of either incoming edges or outgoing edges (getPredecessorCursor, getSuccessorCursor).

The number of overall edges at a node is called its degree (degree), which is the sum of incoming and outgoing edges (inDegree, outDegree).

Important: Class Graph is the single authority for any structural changes to the graph data type. Specifically, this means that there is no way to create or delete a node or an edge without using an actual Graph instance.

Type Details

yfiles module
algorithms
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.algorithms.Node

See Also

Constructors

Properties

Methods