Removes the node from the graph and frees the node.
All edges to and from the node are also deleted. The overloaded RemoveNode method removes a node based on its Caption property. In other words, the graph searches for a node that matches the Caption string.
Note |
---|
To remove a node without freeing it, use the Extract methods. |
Namespace: GGraph
Delphi |
public |
Parameters
Node
Type: TGGraphNode
Type: Boolean
The following code removes two nodes from the graph using the different RemoveNode methods:
|
Reference•GGraph.TGCustomGraph.CreateNode(String) •GGraph.TGCustomGraph.Extract(String) •GGraph.TGCustomGraph.Extract(TGGraphNode) •GGraph.TGCustomGraph.GetNodes •GGraph|TGCustomGraph.RemoveNode(string) |