YARP
Yet Another Robot Platform
graph.h File Reference
#include <map>
#include <string>
#include <iterator>
#include <yarp/manager/ymm-types.h>
#include <yarp/manager/node.h>
+ Include dependency graph for graph.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  yarp::manager::Graph
 Class Graph. More...
 
class  yarp::manager::GraphIterator
 Class GraphIterator. More...
 

Namespaces

 yarp
 The main, catch-all namespace for YARP.
 
 yarp::manager
 

Macros

#define PRINT_GRAPH(g)
 

Typedefs

typedef std::map< std::string, Node * > yarp::manager::NodePContainer
 
typedef std::map< std::string, Node * >::iterator yarp::manager::NodePIterator
 

Macro Definition Documentation

◆ PRINT_GRAPH

#define PRINT_GRAPH (   g)
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.