|
AddEdge(TGGraphNode)
|
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.
|
|
AddingEdgeFrom(TGGraphNode,TGGraphEdge)
|
Called when a node is adding an edge from itself to this node.
|
|
AddingEdgeTo(TGGraphNode,TGGraphEdge)
|
Called when a node is adding an edge to another node.
|
|
Assign(TPersistent)
|
Represents method Assign(TPersistent).
|
|
BeginUpdate
|
The BeginUpdate method prevents the node from reporting changes until the EndUpdate method is called.
Call BeginUpdate before adding, removing, or modifying edges or otherwise modifying the node. BeginUpdate speeds processing time by deferring OnChange events until EndUpdate is called.
|
|
Change
|
Called when the node changes.
|
|
Clear
|
Clears the node, in this case, this means to delete all edges from the node to other nodes. Other node descendants can override this behavior to also clear other information.
|
|
EndUpdate
|
The EndUpdate method reports the changes deferred by a call to BeginUpdate.
Call EndUpdate at the end of a segment of code that began with a call to BeginUpdate. Every time BeginUpdate is called, an internal counter is incremented. When EndUpdate is called, the counter is decremented. When every call to BeginUpdate has been matched by a call to EndUpdate, EndUpdate signals an OnChange event.
|
|
FastClear
|
FastClear is called by the graph when it knows it is deleting all nodes, so no events or anything else need to be passed around
|
|
GetEnumerator
|
Returns an enumerator to enumerate over all the edges in the node.
|
|
IndexOfEdge(TGGraphEdge)
|
Returns the index of the AnEdge parameter in the current node's edge list. This index may then be passed to the Edge property or the RemoveEdge method. The function returns -1 if the edge is not in the list of edges.
|
|
IndexOfEdgeTo(TGGraphNode)
|
Finds the first edge in the current node's edge list that goes to the specified ANode parameter. If no edge goes to the node, the function returns -1.
|
|
NewEdge(TGGraphNode,TGGraphNode)
|
Creates a new edge from one node to another.
|
|
ReadData(TReader)
|
Reads the node from the TReader stream
|
|
RemoveEdge(Integer)
|
Overloaded. Removes the edge at the position given by the Index parameter. Call RemoveEdge to remove the edge at a specific position from the node's out-bound edge list. The index is zero-based, so the first edge has an Index value of 0, the second edge has an Index value of 1, and so on. Calling RemoveEdge moves up all edges in the Edge array that follow the deleted edge, and reduces the EdgeCount.
Note
|
If the edge object is owned by the node (FromNode equals current node), the edge is freed as well.
|
|
|
RemoveEdge(TGGraphEdge)
|
Overloaded. Removes the specified edge from the node's out-bound edge list.
Note
|
If the edge object is owned by the node (FromNode equals current node), the edge is freed as well.
|
|
|
RemovePredecessors
|
Overloaded. Removes all predecessors, i.e., remove all edges from other nodes which point to the current node.
|
|
RemovePredecessors(TGGraphNode)
|
Overloaded. Remove all edges to the input node from the current node's list of edges.
|
|
RemovingEdgeFrom(TGGraphNode,TGGraphEdge)
|
Remove the edge from ANode to the current node
|
|
RemovingEdgeTo(TGGraphNode,TGGraphEdge)
|
Remove our out edge connected to the other node
|
|
TextChange(String)
|
Called when the Caption is about to change.
|
|
WriteData(TWriter)
|
Writes the node to the TWriter stream
|