From 190a54bc07e4c1497938a31373543650d3f19c55 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 6 Jan 2008 18:18:23 +0000 Subject: [PATCH] run at sane speed, turn all on, need to rethink cost function a bit --- energy.c | 2 +- mgraph.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/energy.c b/energy.c index ed50bc7..a54cfe2 100644 --- a/energy.c +++ b/energy.c @@ -27,7 +27,7 @@ double compute_energy(const struct Vertices *vs) { COST(1e2, edgewise_vertex_displacement_cost(vs->a)); COST(1e2, graph_layout_cost(vs->a,vertex_areas)); -// COST(1e4, noncircular_rim_cost(vs->a)); + COST(1e6, noncircular_rim_cost(vs->a)); if (printing) printf("| total %# e |", energy); diff --git a/mgraph.h b/mgraph.h index 8636b91..714ff7f 100644 --- a/mgraph.h +++ b/mgraph.h @@ -69,9 +69,9 @@ #include "common.h" -#define XBITS 4 +#define XBITS 3 #define X (1<