The TGGraphEdge class connects nodes ( GGraph.TGGraphNode objects and descendants) in a graph. The TGGraphEdge class is an undirected edge by its nature. The GGraph.TGCustomGraph class defines whether the edge is directed or undirected. In undirected graphs, the same edge appears in both the
FromNode and ToNode edge lists. The FromNode is responsible for managing the edge's memory (freeing it).
Namespace: GGraph
Delphi
|
type
TGGraphEdge = class(TPersistent)
end;
|
|
Name
|
Description
|
|
FromNode
|
Specifies the node from which this edge is starting from. The ToNode property specifies the node to which the edge is going.
Note
|
In an undirected graph, the FromNode and ToNode nodes are equivalent.
|
The FromNode and ToNode properties are set in the constructor.
|
|
ToNode
|
Specifies the node to which the edge is going. The FromNode property specifies the node from which this edge is starting from.
Note
|
In an undirected graph, the FromNode and ToNode nodes are equivalent.
|
The FromNode and ToNode properties are set in the constructor.
|
Top
|
|
Name
|
Description
|
|
Change
|
Called when the edge changes. The method propagates the change event to its from and to nodes.
|
|
FastClear(TGGraphNode)
|
FastClear is only called when all nodes are being deleted, that being so we don't have to tell our nodes we are going away
|
|
ReadData(TReader)
|
Reads the edge from a TReader stream
|
|
WriteData(TWriter)
|
Writes the edge to a TWriter stream
|
Top
|