25 for (Node::connectMapType::iterator it =
_succs.begin(), eit =
_succs.end();
28 tmpSuccs.push_back(it->first);
37 for (Node::connectMapType::iterator it =
_preds.begin(), eit =
_preds.end();
40 tmpPreds.push_back(it->first);
47 os <<
"Node " <<
getId() <<
"\n";
49 for (Node::connectMapType::iterator it =
_preds.begin(), eit =
_preds.end();
51 os << it->first <<
" ";
54 for (Node::connectMapType::iterator it =
_succs.begin(), eit =
_succs.end();
56 os << it->first <<
" ";
129 nodeMapType::iterator nodeFound =
_nodeMap.find(fID);
130 f = nodeFound->second;
139 nodeMapType::iterator nodeFound =
_nodeMap.find(tID);
140 t = nodeFound->second;
165 if (n == it->second) {
175 if (it->second == e) {
185 adjMapType::iterator edgeFound =
209 Graph::adjMapType::iterator fit =
220 nodeMapType::iterator nodeFound =
_nodeMap.find(nodeID);
221 return nodeFound->second;
227 vector<Edge *> edges;
232 if (nodePair.first == sourceID) {
233 edges.push_back(it->second);
240 vector<Edge *> edges;
245 if (nodePair.second == destID) {
246 edges.push_back(it->second);
255 if (it->second == sourceNode) {
264 if (it->second == destNode) {
272 os <<
"Node map: " <<
_nNodes <<
"\n";
273 for (Graph::nodeMapType::iterator it =
_nodeMap.begin(), eit =
_nodeMap.end();
275 os << it->first <<
" " << it->second <<
" ";
276 it->second->dump(os, tabn++);
280 os <<
"Edge map: " <<
_nEdges <<
"\n";
281 for (Graph::edgeMapType::iterator it =
_edgeMap.begin(), eit =
_edgeMap.end();
283 os << it->first <<
" " << it->second <<
" ";
287 os <<
"Adjacency list: " <<
_adjList.size() <<
"\n";
288 for (Graph::adjMapType::iterator it =
_adjList.begin(), eit =
_adjList.end();
291 Edge *e = it->second;
293 os <<
"Edge (" << p.first <<
"," << p.second <<
") \n";
294 os <<
"TimeAdvance : \n";
296 os <<
"\n Size of timeAdvanceVector : " << timeAdvanceVector.size();
297 for (
unsigned int i = 0; i < timeAdvanceVector.size(); i++) {
299 os <<
" " << timePair.first <<
" " << timePair.second <<
"\n";
309 PrintingPolicy Policy(LO);
311 for (Graph::adjMapType::iterator it =
_adjList.begin(), eit =
_adjList.end();
314 Edge *e = it->second;
316 os <<
" Edge (" << p.first <<
", " << p.second <<
")\n";
399 for (Graph::nodeMapType::iterator it =
_nodeMap.begin(), eit =
_nodeMap.end();
409 for (Graph::edgeMapType::iterator it =
_edgeMap.begin(), eit =
_edgeMap.end();
Edge(Node *, Node *)
Edge class.
timeAdvanceVectorType _timeAdvanceVector
vector< timePairType > timeAdvanceVectorType
void dump(raw_ostream &, int)
void updateSuspensionTime(timePairType)
timeAdvanceVectorType getTimeAdvanceVector()
pair< unsigned int, unsigned int > timePairType
void dump(raw_ostream &, int tabn=0)
edgeVector returnEdgeVector()
map< twoNodePairType, Edge * > adjMapType
vector< Edge * > getEdgesFromSource(int)
Edge * addEdge(Node *, Node *)
vector< Edge * > edgeVector
void dumpSauto(raw_ostream &, int tabn=0)
edgeIDVector _edgeIDVector
vector< Node * > nodeVector
pair< int, Edge * > edgePairType
vector< int > nodeIDVector
vector< int > edgeIDVector
Edge * getEdge(Node *, Node *)
adjMapType returnAdjList()
vector< Edge * > getEdgesFromDest(int)
edgeIDVector returnEdgeIDs()
pair< int, Node * > nodePairType
nodeVector returnNodeVector()
pair< int, int > twoNodePairType
nodeIDVector returnNodeIDs()
nodeIDVector _nodeIDVector
pair< twoNodePairType, Edge * > adjPairType
void addPredecessor(Node *)
vector< int > getSuccessors(int)
void dump(raw_ostream &, int)
vector< int > getPredecessors(int)
pair< int, Node * > connectPairType
void addSuccessor(Node *)