// file: examples/Apollonius_graph_2/example1.C #include // standard includes #include #include #include // the number type #include #include // example that uses the Filtered_exact number type typedef CGAL::Filtered_exact NT; // choose the kernel #include typedef CGAL::Simple_cartesian Kernel; // typedefs for the traits and the algorithm #include #include typedef CGAL::Apollonius_graph_traits_2 Traits; typedef CGAL::Apollonius_graph_2 Apollonius_graph; int main() { std::ifstream ifs("data/sites.cin"); assert( ifs ); Apollonius_graph ag; Apollonius_graph::Site_2 site; // read the sites and insert them in the Apollonius graph while ( ifs >> site ) { ag.insert(site); } // validate the Apollonius graph assert( ag.is_valid(true, 1) ); std::cout << std::endl; return 0; }