21 #ifndef TULIP_CONNECTEDTEST_H
22 #define TULIP_CONNECTEDTEST_H
26 #include <tulip/tuliphash.h>
27 #include <tulip/Observable.h>
28 #include <tulip/Graph.h>
46 static bool isConnected(
const Graph*
const graph);
55 static void makeConnected(
Graph *graph, std::vector<edge>& addedEdges);
63 static unsigned int numberOfConnectedComponents(
const Graph*
const graph);
73 static void computeConnectedComponents(
const Graph *graph, std::vector< std::set<node> >& components);
86 void connect(
const Graph *
const, std::vector<node>& toLink);
94 bool compute(
const Graph *
const);
97 virtual void treatEvent(
const Event&);
106 TLP_HASH_MAP<const Graph*,bool> resultsBuffer;
Event is the base class for all events used in the Observation mechanism.
Performs a test of connexity on the graph, and provides a function to make a graph connected...
The Observable class is the base of Tulip's observation system.