11 lines
405 B
C++
11 lines
405 B
C++
#pragma once
|
|
#include "nodesoup.hpp"
|
|
#include <vector>
|
|
|
|
namespace nodesoup {
|
|
/** Distribute vertices equally on a 1.0 radius circle */
|
|
void circle(const adj_list_t& g, std::vector<Point2D>& positions);
|
|
/** Center and scale vertices so the graph fits on a canvas of given dimensions */
|
|
void center_and_scale(const adj_list_t& g, unsigned int width, unsigned int height, std::vector<Point2D>& positions);
|
|
}
|