Creates the edge and sets the FromNode and ToNode properties to their respective parameters. The edge is automatically added to the edge lists of the FromNode (and the ToNode's as well when the graph is undirected).
Namespace: GGraph
Delphi |
public |
Parameters
NodeFrom
Type: TGGraphNode
NodeTo
Type: TGGraphNode
The following code creates an edge from node1 to node2 (node1 is responsible for freeing the edge): Delphi |
begin |