X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=moebius2.git;a=blobdiff_plain;f=minimise.h;h=2043d16249eef6ce6458a0de18030ca20437a52e;hp=74788d3fbe862b55e3ba4459adbf98dd58dd6685;hb=a602fc812857788265c72c27b132f34b9d7d107c;hpb=bc3b5b8813e120b28b3148d8c7412fa9937f6cb1 diff --git a/minimise.h b/minimise.h index 74788d3..2043d16 100644 --- a/minimise.h +++ b/minimise.h @@ -9,16 +9,21 @@ double compute_energy(const struct Vertices *vs); -double graph_layout_cost(const Vertices v, const double vertex_areas[N]); +double graph_layout_cost(const Vertices v); void graph_layout_prepare(); +void compute_vertex_areas(const Vertices vertices); +void compute_edge_lengths(const Vertices vertices); +extern double vertex_areas[N], vertex_mean_edge_lengths[N], edge_lengths[N][V6]; + double noncircular_rim_cost(const Vertices vertices); double edgewise_vertex_displacement_cost(const Vertices vertices); +double edge_length_variation_cost(const Vertices vertices); extern const char *input_file, *output_file; extern char *output_file_tmp; enum printing_instance { pr_cost, pr_size, pr__max }; -int printing_check(enum printing_instance); +int printing_check(enum printing_instance, int indent); #endif /*MINIMISE_H*/