SimpleDirectedGraphNode
This is a node in the directed graph. All the connectivity information for the graph is captured in this (by way of the successor and predecessor sets).
Synopsis
Declared in <src/midend/programAnalysis/staticInterproceduralSlicing/SimpleDirectedGraph.h>
class SimpleDirectedGraphNode;
Member Functions
Name |
Description |
|
Destructor |
add an edge from n to the current node |
|
add an edge from the current node to n |
|
get the nodes which point to the current node |
|
get the nodes which are pointed to by the current node |
|
test whether n is a predecessor of the current node |
|
test whether n is a successor of the current node |
|
return the number of incoming edges |
|
return the number of outgoing edges |
|
|
virtual function to support displaying node information |
Private Data Members
Derived Classes
Name |
Description |
This class is a node in the CFG. It can either be an SgNode or it can be a special entry or exit node (since there are some empty blocks in the CFG). |
|
Description
This is a much simpler graph mechanism than that provided by util/graphs. It places most of the onus of edge bookkeeping on the nodes themselves.
Created with MrDocs