28 int max_level = hp->
nlevels - 1;
29 double width =
parms->width;
30 double height =
parms->height;
31 double distortion =
parms->distortion;
34 for (
int i = 0; i <
LIST_GET(&hp->nvtxs, (
size_t)max_level); i++) {
46 interval, width, height, distortion);
50 for (
int count = 0, i = 0; i <
LIST_GET(&hp->nvtxs, (
size_t)max_level); i++) {
61 double *y_coords,
bool dist2_limit) {
68 delaunay =
UG_graph(x_coords, y_coords, nn);
73 free(delaunay[0].edges);
77 free(geom_graph[0].edges);
81 geom_graph =
LIST_GET(&hp->geom_graphs, 0);
82 for (i = 0; i <
LIST_GET(&hp->nvtxs, 0); i++) {
Memory allocation wrappers that exit on failure.
static void * gv_calloc(size_t nmemb, size_t size)
static void * gv_alloc(size_t size)
v_data * UG_graph(double *x, double *y, int n)
Agraph_t * graph(char *name)
Hierarchy * makeHier(int nn, int ne, v_data *graph, double *x_coords, double *y_coords, bool dist2_limit)
void positionAllItems(Hierarchy *hp, focus_t *fs, reposition_t *parms)
focus_t * initFocus(size_t ncnt)
void init_active_level(Hierarchy *hierarchy)
size_t extract_active_logical_coords(Hierarchy *hierarchy, int node, int level, double *x_coords, double *y_coords, size_t counter)
Hierarchy * create_hierarchy(v_data *graph, int nvtxs, int nedges, ex_vtx_data *geom_graph, int ngeom_edges, bool dist2_limit)
int set_active_physical_coords(Hierarchy *hierarchy, int node, int level, double *x_coords, double *y_coords, int counter)
int init_ex_graph(v_data *graph1, v_data *graph2, int n, double *x_coords, double *y_coords, ex_vtx_data **gp)
void rescale_layout_polar(double *x_coords, double *y_coords, double *x_foci, double *y_foci, int num_foci, size_t n, int interval, double width, double height, double distortion)
type-generic dynamically expanding list
#define LIST_GET(list, index)