if (printing) printf("cost > energy |");
-// COST(1e4, edgewise_vertex_displacement_cost(vertices));
- COST(1e2, graph_layout_cost(vertices,vertex_areas));
-// COST(1e4, noncircular_rim_cost(vertices));
+ COST(1e2, edgewise_vertex_displacement_cost(vertices));
+// COST(1e0, graph_layout_cost(vertices,vertex_areas));
+ COST(1e4, noncircular_rim_cost(vertices));
if (printing) printf("| total %# e |", energy);
*/
//static const double d2_epsilon= 1e-6;
- // double edge_weights[V6<<ESHIFT], vertex_distances[N],
double total_cost=0;
int v1,v2,e, nedges=0;
double totaledgelength=0, meanedgelength, meanedgelength2;
double cost= pow(d2/s2, beta_prime);
- //double s2= s*s + d2_epsilon;
- //double sd2= s2 / d2;
- //double cost_contrib= a1*a2 * (sd2 - 1) / (d2*d2);
- //double cost_contrib= sd2;
-
//printf("layout %03x..%03x dist^2=%d s^2=%g d^2=%g "
//" cost+=%g\n", v1,v2, dist2,
// s2,d2, cost);