equal
deleted
inserted
replaced
73 e=_el(u,v); |
73 e=_el(u,v); |
74 } |
74 } |
75 |
75 |
76 }; |
76 }; |
77 |
77 |
78 // class EL4 |
78 class EL4 |
79 // { |
79 { |
80 // public: |
80 public: |
81 // Graph &_g; |
81 Graph &_g; |
82 // EdgeLookUp4<Graph> _el; |
82 EdgeLookUp4<Graph> _el; |
83 // EL4(Graph &g) :_g(g), _el(g) {} |
83 EL4(Graph &g) :_g(g), _el(g) {} |
84 // void operator()() |
84 void operator()() |
85 // { |
85 { |
86 // Edge e; |
86 Edge e; |
87 |
87 |
88 // for(NodeIt v(_g);v!=INVALID;++v) |
88 for(NodeIt v(_g);v!=INVALID;++v) |
89 // for(NodeIt u(_g);u!=INVALID;++u) |
89 for(NodeIt u(_g);u!=INVALID;++u) |
90 // e=_el(u,v); |
90 e=_el(u,v); |
91 // } |
91 } |
92 |
92 |
93 // }; |
93 }; |
94 |
94 |
95 int main(int, char**argv) |
95 int main(int, char**argv) |
96 { |
96 { |
97 int N=atoi(argv[1]); |
97 int N=atoi(argv[1]); |
98 int M=int(N*atof(argv[2])); |
98 int M=int(N*atof(argv[2])); |