#ifndef BOOSTCRAP_H #define BOOSTCRAP_H #include "apathing.h" #include #include #include #include #include using namespace boost; //man I hate boost typedef adjacency_list < vecS, vecS, undirectedS, property, property < edge_weight_t, int > > MyGraph; typedef graph_traits < MyGraph >::vertex_descriptor VertDesc; typedef graph_traits < MyGraph >::edge_descriptor EdgeDesc; void build_boost_graph(MyGraph &vg, property_map::type &weightmap, map &em, PathGraph *big, bool set_weights = true); void run_min_spanning_tree(MyGraph &vg, property_map::type &weightmap, map &em, PathGraph *big, int start_node); void find_disjoint_grids(Map *map, MyGraph &vg, PathGraph *big, const char *file, vector &start_nodes, vector &disjoints); void calc_path_lengths(Map *map, MyGraph &vg, PathGraph *big, map &em, const char *fname); void color_disjoint_graphs(PathGraph *big, MyGraph &vg, Map *map, const char *fname, vector< vector > &D, vector &counts, vector &disjoint_counts, vector &first_node ); void count_crossing_lines(list &edges, PathGraph *out, PathGraph *excess, map > &cross_list); void consolidate_cross_graphs(Map *map, PathGraph *cross_big, PathGraph *cross_excess, MyGraph &cross_graph, const char *fname); void just_color_the_damned_thing(Map *map, PathGraph *big, const char *fname); #endif