mirror of
https://github.com/boostorg/graph.git
synced 2025-05-09 23:14:00 +00:00
Sync from upstream.
This commit is contained in:
commit
7b9640389c
@ -22,6 +22,8 @@ path-constant CYCLE_RATIO_INPUT_FILE : ./cycle_ratio_s382.90.dot ;
|
|||||||
|
|
||||||
path-constant METIS_INPUT_FILE : ./weighted_graph.gr ;
|
path-constant METIS_INPUT_FILE : ./weighted_graph.gr ;
|
||||||
|
|
||||||
|
path-constant WEIGHTED_MATCHING_INPUT_FILE : ./weighted_matching.dat ;
|
||||||
|
|
||||||
project : requirements <library>/boost/graph//boost_graph ;
|
project : requirements <library>/boost/graph//boost_graph ;
|
||||||
|
|
||||||
alias graph_test_regular :
|
alias graph_test_regular :
|
||||||
@ -118,7 +120,7 @@ alias graph_test_regular :
|
|||||||
[ run cuthill_mckee_ordering.cpp ]
|
[ run cuthill_mckee_ordering.cpp ]
|
||||||
[ run king_ordering.cpp ]
|
[ run king_ordering.cpp ]
|
||||||
[ run matching_test.cpp ]
|
[ run matching_test.cpp ]
|
||||||
[ run weighted_matching_test.cpp ]
|
[ run weighted_matching_test.cpp : $(WEIGHTED_MATCHING_INPUT_FILE) ]
|
||||||
[ run weighted_matching_test2.cpp ]
|
[ run weighted_matching_test2.cpp ]
|
||||||
[ run max_flow_test.cpp ]
|
[ run max_flow_test.cpp ]
|
||||||
[ run boykov_kolmogorov_max_flow_test.cpp ]
|
[ run boykov_kolmogorov_max_flow_test.cpp ]
|
||||||
|
@ -136,9 +136,12 @@ Graph make_graph(typename graph_traits< Graph >::vertices_size_type num_v,
|
|||||||
return g;
|
return g;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int, char*[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
std::ifstream in_file("weighted_matching.dat");
|
const char* filename = "weighted_matching.dat";
|
||||||
|
if (argc > 1)
|
||||||
|
filename = argv[1];
|
||||||
|
std::ifstream in_file(filename);
|
||||||
BOOST_TEST(in_file.good());
|
BOOST_TEST(in_file.good());
|
||||||
std::string line;
|
std::string line;
|
||||||
while (std::getline(in_file, line))
|
while (std::getline(in_file, line))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user