Removes the node with the specified Caption from the graph and frees the node. The graph searches for a node that matches the Caption parameter, if no node is found this method returns nil.
All edges to and from the node are also deleted. The overloaded RemoveNode method removes the specified node. In other words, the graph doesn't have to search 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
Caption
Type: String
Type: Boolean
The following code removes two nodes from the graph using the different RemoveNode methods: Delphi |
var |