#include <map>
#include <string>
#include <iterator>
#include <yarp/manager/ymm-types.h>
#include <yarp/manager/node.h>
Go to the source code of this file.
◆ PRINT_GRAPH
Value: cout<<"Graph "<<#g<<" with "<<g.getSize()<<" nodes:"<<endl;\
cout<<"{"<<endl;\
for(GraphIterator itr=g.begin(); itr!=g.end(); itr++)\
{\
Node* n = (*itr);\
cout<<" "<<n->getLabel()<<": [";\
for(int j=0; j<n->sucCount(); j++)\
{\
Link l = n->getLinkAt(j);\
cout<<l.to()->getLabel()<<"("<<l.weight()<<"), ";\
}\
cout<<"]"<<endl;\
}\
cout<<"}"<<endl;
Definition at line 86 of file graph.h.