chiark / gitweb /
exploit symmetry
[moebius2.git] / minimise.h
1 /*
2  * Routines used for minimisation (only)
3  */
4
5 #ifndef MINIMISE_H
6 #define MINIMISE_H
7
8 #include "mgraph.h"
9
10 double compute_energy(const struct Vertices *vs);
11
12 double graph_layout_cost(const Vertices v, const double vertex_areas[N]);
13 void graph_layout_prepare();
14
15 double noncircular_rim_cost(const Vertices vertices);
16 double edgewise_vertex_displacement_cost(const Vertices vertices);
17
18 extern const char *input_file, *output_file;
19 extern char *output_file_tmp;
20
21 enum printing_instance { pr_cost, pr_size, pr__max };
22 int printing_check(enum printing_instance);
23
24 #endif /*MINIMISE_H*/