Creates a new node and adds it to the graph. The Caption of the node is set to the NodeName parameter. The node class created is the default for the graph (usually GGraph.TGGraphNode class). To create nodes of other types, create the node and pass in the graph (see Example).
Namespace: GGraph
Delphi |
public |
Parameters
NodeName
Type: String
Type: TGGraphNode
The following example creates two nodes. The first node is created using the CreateNode method which automatically creates a node of the default class. The second node is created as a TWeightedNode and added to the graph automatically in the constructor. Delphi |
begin |