}
#endif
-pedge pedge_realloc(pedge e, int n){
- if (n <= e->npoints) return e;
- e->x = (double*)REALLOC(e->x, e->dim*n*sizeof(double));
- if (e->wgts) e->wgts = (double*)REALLOC(e->wgts, (n-1)*sizeof(double));
- e->len = n;
- return e;
-}
pedge pedge_wgts_realloc(pedge e, int n){
/* diff from pedge_alloc: allocate wgts if do not exist and initialize to wgt */
int i;
pedge* edge_bundling(SparseMatrix A, int dim, double *x, int maxit_outer, double K, int method, int nneighbor, int compatibility_method, int max_recursion, double angle_param, double angle, int open_gl);
void pedge_delete(pedge e);
-pedge pedge_realloc(pedge e, int np);
pedge pedge_wgts_realloc(pedge e, int n);
void pedge_export_mma(FILE *fp, int ne, pedge *edges);
void pedge_export_gv(FILE *fp, int ne, pedge *edges);