Changeset 103:063de9e1be98 in lemon-0.x for src/work/alpar
- Timestamp:
- 02/20/04 01:27:49 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@136
- Location:
- src/work/alpar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/alpar/f_ed_ka_demo.cc
r95 r103 1 1 #include <iostream> 2 2 #include <fstream> 3 4 #include "smart_graph.h" 3 5 4 6 #include "../list_graph.hh" … … 13 15 14 16 int main(int, char **) { 15 typedef ListGraph::NodeIt NodeIt; 16 typedef ListGraph::EachNodeIt EachNodeIt; 17 typedef ListGraph::EachEdgeIt EachEdgeIt; 17 // typedef SmartGraph Graph; 18 typedef ListGraph Graph; 18 19 19 ListGraph G; 20 typedef Graph::NodeIt NodeIt; 21 typedef Graph::EachNodeIt EachNodeIt; 22 typedef Graph::EachEdgeIt EachEdgeIt; 23 24 Graph G; 20 25 NodeIt s, t; 21 ListGraph::EdgeMap<int> cap(G);26 Graph::EdgeMap<int> cap(G); 22 27 readDimacsMaxFlow(std::cin, G, s, t, cap); 23 28 24 29 std::cout << "edmonds karp demo..." << std::endl; 25 ListGraph::EdgeMap<int> flow(G); //0 flow30 Graph::EdgeMap<int> flow(G); //0 flow 26 31 27 32 int ret; -
src/work/alpar/gwrapper.h
r70 r103 1 1 // -*-mode: c++; -*- 2 #ifndef GRAPH_WRAPPER_H 3 #define GRAPH_WRAPPER_H 4 5 namespace marci { 2 6 3 7 template<typename G>
Note: See TracChangeset
for help on using the changeset viewer.