24 int max_level = hp->
nlevels - 1;
25 double width =
parms->width;
26 double height =
parms->height;
27 double distortion =
parms->distortion;
30 for (
int i = 0; i < hp->
nvtxs[max_level]; i++) {
42 interval, width, height, distortion);
46 for (
int count = 0, i = 0; i < hp->
nvtxs[max_level]; i++) {
60 for (i = 0; i < nn; i++) {
61 fprintf(stderr,
"[%d]", i);
62 for (j = 1; j <
graph->nedges; j++)
63 fprintf(stderr,
" %d",
graph->edges[j]);
64 fprintf(stderr,
"\n");
72 for (i = 0; i < nn; i++) {
73 fprintf(stderr,
"[%d](%d,%d,%d)(%f,%f)", i,
graph->size,
76 for (j = 1; j <
graph->nedges; j++)
77 fprintf(stderr,
" %d",
graph->edges[j]);
78 fprintf(stderr,
"\n");
87 for (i = 0; i < hier->
nlevels; i++) {
88 fprintf(stderr,
"level [%d] %d %d \n", i, hier->
nvtxs[i],
90 fprintf(stderr,
"graph\n");
92 fprintf(stderr,
"geom_graph\n");
108 delaunay =
UG_graph(x_coords, y_coords, nn);
113 free(delaunay[0].edges);
117 free(geom_graph[0].edges);
122 for (i = 0; i < 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, hierparms_t *parms)
void positionAllItems(Hierarchy *hp, focus_t *fs, reposition_t *parms)
focus_t * initFocus(int ncnt)
Hierarchy * create_hierarchy(v_data *graph, int nvtxs, int nedges, ex_vtx_data *geom_graph, int ngeom_edges, hierparms_t *parms)
size_t extract_active_logical_coords(Hierarchy *hierarchy, int node, int level, double *x_coords, double *y_coords, size_t counter)
int set_active_physical_coords(Hierarchy *hierarchy, int node, int level, double *x_coords, double *y_coords, int counter)
void init_active_level(Hierarchy *hierarchy, int level)
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)
ex_vtx_data ** geom_graphs