documentationfor yFiles for HTML 3.0.0.3

LayoutEdge

Represents a directed edge, a connection between two nodes, in the LayoutGraph data structure.

Inheritance Hierarchy
LayoutGraphItem
LayoutEdge
Implemented Interfaces

Remarks

A directed edge has a distinct source node and target node. It represents a one-way relationship where data or flow originates from the source and ends at the target. In pair notation, this is written as (<source node>, <target node>).

The edge exposes both its source and target nodes, which can be accessed for various graph operations.

Self-loops, where the edge connects a node to itself, are supported. In such cases, both source and target refer to the same node, and the selfLoop property returns true.

Important: Structural modifications to the graph must be managed through the LayoutGraph class. To create or delete a LayoutNode or an LayoutEdge, use the appropriate methods provided by the LayoutGraph instance.

This class cannot be instantiated

Type Details

yFiles module
algorithms

Properties

Methods