equal
deleted
inserted
replaced
21 RefType(Graph &_G,Edge _e) : G(_G), e(_e) { } |
21 RefType(Graph &_G,Edge _e) : G(_G), e(_e) { } |
22 |
22 |
23 operator ValueType() const |
23 operator ValueType() const |
24 { |
24 { |
25 ValueType tmp; |
25 ValueType tmp; |
26 std::cout << G.id(G.tail(e)) << "->" |
26 std::cout << G.id(G.source(e)) << "->" |
27 << G.id(G.head(e)) << ": "; |
27 << G.id(G.target(e)) << ": "; |
28 std::cin >> tmp; |
28 std::cin >> tmp; |
29 return tmp; |
29 return tmp; |
30 } |
30 } |
31 ValueType operator = (ValueType v) const |
31 ValueType operator = (ValueType v) const |
32 { |
32 { |
33 std::cout << G.id(G.tail(e)) << "->" |
33 std::cout << G.id(G.source(e)) << "->" |
34 << G.id(G.head(e)) << ": " << v << '\n'; |
34 << G.id(G.target(e)) << ": " << v << '\n'; |
35 return v; |
35 return v; |
36 } |
36 } |
37 }; |
37 }; |
38 |
38 |
39 private: |
39 private: |