Base class for graph layout algorithms, i.e. algorithms that compute a layout in form of 2D coordinates for nodes.
Public Functions
-
inline LayoutAlgorithm(const Graph &G)
-
virtual void run() = 0
-
inline virtual std::vector<std::pair<double, double>> getLayout()
Protected Attributes
-
const Graph *G
-
std::vector<std::pair<double, double>> layout