37 auto itr = nodes.find(node->
getLabel());
38 if(itr == nodes.end())
48 auto itr = nodes.find(szLabel);
49 if(itr == nodes.end())
59 for(itr=nodes.begin(); itr!=nodes.end(); itr++)
60 delete ((*itr).second);
67 for(itr=nodes.begin(); itr!=nodes.end(); itr++)
74 for(itr=nodes.begin(); itr!=nodes.end(); itr++)
80 auto itr = nodes.find(szLabel);
81 if(itr != nodes.end())
87 float weight,
bool _virtual)
92 first->
addSuc(second, weight, _virtual);
97 float weight,
bool _virtual)
104 first->
addSuc(second, weight, _virtual);
134 auto itr = nodes.find(node->
getLabel());
135 if(itr == nodes.end())
150 auto itr = nodes.begin();
151 for(
int i=0; i<index; i++)
153 return (*itr).second;
160 itr.itr = nodes.begin();
167 itr.itr = nodes.end();
174 for(itr=nodes.begin(); itr!=nodes.end(); itr++)
175 if ((*itr).second == node)
Node * addNode(Node *node)
bool removeNode(Node *node)
Node * getNode(const char *szLabel)
bool removeLink(Node *first, Node *second)
bool addLink(Node *first, Node *second, float weight, bool _virtual=false)
Node * getNodeAt(int index)
void setVisited(bool vis)
void setSatisfied(bool sat)
bool addSuc(Node *node, float weight, bool _virtual=false)
class Node
bool removeSuc(Node *node)
std::map< std::string, Node * >::iterator NodePIterator
#define __CHECK_NULLPTR(_ptr)