Creates a new edge in this graph and fires a corresponding notification event to inform registered listeners.

Namespace: yWorks.yFiles.Algorithms
Assembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 2.4.0.0

Syntax

C#
public virtual Edge CreateEdge( Node v, Node w )
Visual Basic
Public Overridable Function CreateEdge ( _ v As Node, _ w As Node _ ) As Edge

Parameters

v
Type: yWorks.yFiles.Algorithms..::..Node
The source node of the edge.
w
Type: yWorks.yFiles.Algorithms..::..Node
The target node of the edge.

Return Value

The newly created Edge object.

Remarks

Creates a new edge in this graph and fires a corresponding notification event to inform registered listeners. The new edge has source node v and target node w, i.e., would be written as edge e = (v, w).

The edge is appended to the lists of incoming and outgoing edges at the source node and target node, respectively.

See Also