From 17b0bd954f5114915f60d573f5b7f2884d859456 Mon Sep 17 00:00:00 2001 From: erg Date: Tue, 29 Apr 2008 21:59:16 +0000 Subject: [PATCH] Integrate topfish and sfdp into main tree, using GTS for triangulation; remove duplicated code --- cmd/smyrna/hier.c | 7 ++++--- cmd/smyrna/hier.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/smyrna/hier.c b/cmd/smyrna/hier.c index ffb3bcc49..8fee701d1 100644 --- a/cmd/smyrna/hier.c +++ b/cmd/smyrna/hier.c @@ -15,6 +15,7 @@ #include "smyrnadefs.h" #include "hier.h" +#include "delaunay.h" #include "memory.h" /* scale_coords: @@ -124,7 +125,7 @@ void positionAllItems(Hierarchy * hp, focus_t * fs, reposition_t* parms) #ifdef DEBUG static void -dumpG (int nn, vtx_data * graph) +dumpG (int nn, v_data * graph) { int i, j; for (i=0; i < nn; i++) { @@ -166,10 +167,10 @@ dumpHier (Hierarchy* hier) #endif -Hierarchy *makeHier(int nn, int ne, vtx_data * graph, double *x_coords, +Hierarchy *makeHier(int nn, int ne, v_data * graph, double *x_coords, double *y_coords, hierparms_t* parms) { - vtx_data *delaunay; + v_data *delaunay; ex_vtx_data *geom_graph; int ngeom_edges; Hierarchy *hp; diff --git a/cmd/smyrna/hier.h b/cmd/smyrna/hier.h index 4b7735d75..54f37c560 100644 --- a/cmd/smyrna/hier.h +++ b/cmd/smyrna/hier.h @@ -49,7 +49,7 @@ typedef struct { } reposition_t; void positionAllItems(Hierarchy * hp, focus_t * fs, reposition_t* parms); -Hierarchy *makeHier(int nnodes, int nedges, vtx_data *, double *, +Hierarchy *makeHier(int nnodes, int nedges, v_data *, double *, double*, hierparms_t *); focus_t *initFocus(int ncnt); -- 2.40.0