20 #ifndef TULIP_TREETEST_H 21 #define TULIP_TREETEST_H 23 #include <tulip/tuliphash.h> 24 #include <tulip/Observable.h> 25 #include <tulip/Graph.h> 45 static bool isTree(
const Graph *graph);
59 static bool isFreeTree(
const Graph *graph);
71 static void makeRootedTree(
Graph *freeTree,
node root);
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 &)
override;
118 TLP_HASH_MAP<const Graph *, bool> resultsBuffer;
The node struct represents a node in a Graph object.
Event is the base class for all events used in the Observation mechanism.
PluginProcess subclasses are meant to notify about the progress state of some process (typically a pl...
Performs test to check whether a graph is a simple or rooted tree. From wikipedia: "A tree is an undi...
The Observable class is the base of Tulip's observation system.