3 #define _DEBUG_SIMPLEGRAPH_H
8 #ifdef _DEBUG_SIMPLEGRAPH_H
12 #include "GraphInterface.h"
13 #include "GraphCommon.h"
54 std::vector<NodeInterface*> getNodes(
void);
57 unsigned int size(
void);
58 unsigned int edgesNumber(
void);
62 #ifdef _DEBUG_SIMPLEGRAPH_H
63 friend std::ostream& operator<<(std::ostream& os,
SimpleGraph& g);
68 std::vector<Edge*> _edges;
69 std::vector<Node*> _nodes;
74 #endif // SIMPLEGRAPH_H
Definition: SimpleGraph.h:19
bool isDirected()
isDirected
Definition: SimpleGraph.cpp:34
virtual void connectNodes(NodeInterface *n1, NodeInterface *n2, cost_t c)
connectNodes connect 2 nodes.
Definition: SimpleGraph.cpp:50
NodeInterface * addNode(NodeInterface *n)
addNode
Definition: SimpleGraph.cpp:36
NodeInterface * at(unsigned int i)
at returns the node at given index
Definition: SimpleGraph.cpp:122
Definition: NodeInterface.h:11
Definition: EdgeInterface.h:12
unsigned int size(void)
size the number of nodes
Definition: SimpleGraph.cpp:143
template interface for a graph
Definition: GraphInterface.h:13
void updateCost(NodeInterface *n1, NodeInterface *n2, cost_t newcost, cost_t oldcost, bool onlySpecifiedCost=true)
update the cost of an edge specified by its pre and post node, eventually its cost ...
Definition: SimpleGraph.cpp:73