demo/lgf_demo.cc
changeset 148 4e2581021300
parent 127 1c9a9e2f7d4d
child 164 00d297da491e
equal deleted inserted replaced
0:8c47d811c8dc 1:6b2f626b9e4b
    35 
    35 
    36 using namespace lemon;
    36 using namespace lemon;
    37 
    37 
    38 int main(int argc, const char *argv[]) {
    38 int main(int argc, const char *argv[]) {
    39   const int n = argc > 1 ? std::atoi(argv[1]) : 20;
    39   const int n = argc > 1 ? std::atoi(argv[1]) : 20;
    40   const int e = argc > 2 ? std::atoi(argv[2]) : static_cast<int>(n * log(n));
    40   const int e = argc > 2 ? std::atoi(argv[2]) : static_cast<int>(n * std::log(double(n)));
    41   const int m = argc > 3 ? std::atoi(argv[3]) : 100;
    41   const int m = argc > 3 ? std::atoi(argv[3]) : 100;
    42 
    42 
    43   SmartDigraph digraph;
    43   SmartDigraph digraph;
    44 
    44 
    45   std::stringstream ss;
    45   std::stringstream ss;