Changes in / [530:1c5d6e47921f:529:f5bc148f7e1f] in lemon-main
- Files:
-
- 4 deleted
- 6 edited
-
CMakeLists.txt (modified) (3 diffs)
-
lemon/Makefile.am (modified) (1 diff)
-
lemon/dimacs.h (modified) (2 diffs)
-
lemon/min_cost_arborescence.h (deleted)
-
test/CMakeLists.txt (modified) (1 diff)
-
test/Makefile.am (modified) (2 diffs)
-
test/min_cost_arborescence_test.cc (deleted)
-
tools/CMakeLists.txt (deleted)
-
tools/Makefile.am (modified) (2 diffs)
-
tools/dimacs-solver.cc (deleted)
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r527 r518 40 40 ADD_SUBDIRECTORY(lemon) 41 41 ADD_SUBDIRECTORY(demo) 42 ADD_SUBDIRECTORY(tools)43 42 ADD_SUBDIRECTORY(doc) 44 43 ADD_SUBDIRECTORY(test) … … 58 57 "${PROJECT_NAME} ${PROJECT_VERSION}") 59 58 60 SET(CPACK_COMPONENTS_ALL headers library html_documentation bin)59 SET(CPACK_COMPONENTS_ALL headers library html_documentation) 61 60 62 61 SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ headers") 63 62 SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "Dynamic-link library") 64 SET(CPACK_COMPONENT_BIN_DISPLAY_NAME "Command line utilities")65 63 SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DISPLAY_NAME "HTML documentation") 66 64 … … 69 67 SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION 70 68 "DLL and import library") 71 SET(CPACK_COMPONENT_BIN_DESCRIPTION72 "Command line utilities")73 69 SET(CPACK_COMPONENT_HTML_DOCUMENTATION_DESCRIPTION 74 70 "Doxygen generated documentation") -
lemon/Makefile.am
r528 r522 84 84 lemon/math.h \ 85 85 lemon/max_matching.h \ 86 lemon/min_cost_arborescence.h \87 86 lemon/nauty_reader.h \ 88 87 lemon/path.h \ -
lemon/dimacs.h
r525 r440 296 296 } 297 297 298 template<typename Graph> 299 typename enable_if<lemon::UndirectedTagIndicator<Graph>,void>::type 300 _addArcEdge(Graph &g, typename Graph::Node s, typename Graph::Node t, 301 dummy<0> = 0) 302 { 303 g.addEdge(s,t); 304 } 305 template<typename Graph> 306 typename disable_if<lemon::UndirectedTagIndicator<Graph>,void>::type 307 _addArcEdge(Graph &g, typename Graph::Node s, typename Graph::Node t, 308 dummy<1> = 1) 309 { 310 g.addArc(s,t); 311 } 312 313 /// DIMACS plain (di)graph reader function. 314 /// 315 /// This function reads a (di)graph without any designated nodes and 298 /// DIMACS plain digraph reader function. 299 /// 300 /// This function reads a digraph without any designated nodes and 316 301 /// maps from DIMACS format, i.e. from DIMACS files having a line 317 302 /// starting with … … 323 308 /// If the file type was previously evaluated by dimacsType(), then 324 309 /// the descriptor struct should be given by the \c dest parameter. 325 template<typename Graph> 326 void readDimacsMat(std::istream& is, Graph &g, 327 DimacsDescriptor desc=DimacsDescriptor()) 328 { 310 template<typename Digraph> 311 void readDimacsMat(std::istream& is, Digraph &g, 312 DimacsDescriptor desc=DimacsDescriptor()) { 313 typename Digraph::Node u,v; 314 NullMap<typename Digraph::Arc, int> n; 329 315 if(desc.type==DimacsDescriptor::NONE) desc=dimacsType(is); 330 316 if(desc.type!=DimacsDescriptor::MAT) 331 317 throw FormatError("Problem type mismatch"); 332 333 g.clear(); 334 std::vector<typename Graph::Node> nodes; 335 char c; 336 int i, j; 337 std::string str; 338 nodes.resize(desc.nodeNum + 1); 339 for (int k = 1; k <= desc.nodeNum; ++k) { 340 nodes[k] = g.addNode(); 341 } 342 343 while (is >> c) { 344 switch (c) { 345 case 'c': // comment line 346 getline(is, str); 347 break; 348 case 'n': // node definition line 349 break; 350 case 'a': // arc (arc) definition line 351 is >> i >> j; 352 getline(is, str); 353 _addArcEdge(g,nodes[i], nodes[j]); 354 break; 355 } 356 } 318 _readDimacs(is, g, n, u, v, desc); 357 319 } 358 320 -
test/CMakeLists.txt
r528 r522 30 30 maps_test 31 31 max_matching_test 32 min_cost_arborescence_test33 32 path_test 34 33 preflow_test -
test/Makefile.am
r528 r522 26 26 test/maps_test \ 27 27 test/max_matching_test \ 28 test/min_cost_arborescence_test \29 28 test/path_test \ 30 29 test/preflow_test \ … … 68 67 test_mip_test_SOURCES = test/mip_test.cc 69 68 test_max_matching_test_SOURCES = test/max_matching_test.cc 70 test_min_cost_arborescence_test_SOURCES = test/min_cost_arborescence_test.cc71 69 test_path_test_SOURCES = test/path_test.cc 72 70 test_preflow_test_SOURCES = test/preflow_test.cc -
tools/Makefile.am
r526 r523 2 2 3 3 bin_PROGRAMS += \ 4 tools/dimacs-solver \5 4 tools/dimacs-to-lgf \ 6 5 tools/lgf-gen … … 10 9 endif WANT_TOOLS 11 10 12 tools_dimacs_solver_SOURCES = tools/dimacs-solver.cc13 11 tools_dimacs_to_lgf_SOURCES = tools/dimacs-to-lgf.cc 14 12 tools_lgf_gen_SOURCES = tools/lgf-gen.cc
Note: See TracChangeset
for help on using the changeset viewer.

