Creates an edge from the current node to the ANode parameter and returns the edge.
The current node will be assigned to the FromNode property of the edge, and the ANode parameter will be assigned to the ToNode property of the edge. The edge is added to the current node's list of edges (accessible with the Edge and EdgeCount properties). If the graph is undirected, the edge is also added to the ANode edge list.
Namespace: GGraph
Delphi |
public |
Parameters
ANode
Type: TGGraphNode
Type: TGGraphEdge
The following example uses BeginUpdate and EndUpdate to defer OnChange events until after many edges have been added: Delphi |
begin |