22 #ifndef TULIP_TREETEST_H
23 #define TULIP_TREETEST_H
25 #include <tulip/tuliphash.h>
26 #include <tulip/Observable.h>
27 #include <tulip/MutableContainer.h>
28 #include <tulip/PluginProgress.h>
40 class TLP_SCOPE TreeTest :
private Observable {
49 static bool isTree(
const Graph *graph);
62 static bool isFreeTree(
const Graph *graph);
74 static void makeRootedTree(Graph *freeTree, node root);
87 static Graph *computeTree(Graph* graph, PluginProgress *pluginProgress = 0);
98 static void cleanComputedTree(Graph *graph, Graph *tree);
103 bool compute(
const Graph * graph);
105 bool isFreeTree (
const Graph *graph, node curRoot);
108 void treatEvent(
const Event&);
113 static TreeTest * instance;
117 TLP_HASH_MAP<unsigned long,bool> resultsBuffer;