20 #ifndef TULIP_CONNECTEDTEST_H 21 #define TULIP_CONNECTEDTEST_H 25 #include <tulip/tuliphash.h> 26 #include <tulip/Observable.h> 27 #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);
76 static void computeConnectedComponents(
const Graph *graph,
77 std::vector<std::vector<node>> &components);
83 static _DEPRECATED
void computeConnectedComponents(
const Graph *graph,
84 std::vector<std::set<node>> &components);
96 void connect(
const Graph *
const, std::vector<node> &toLink);
104 bool compute(
const Graph *
const);
107 void treatEvent(
const Event &)
override;
117 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.