Changes in lemon/core.h [919:e0cef67fe565:877:141f9c0db4a3] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/core.h
r919 r877 395 395 static void copy(const From& from, Digraph &to, 396 396 NodeRefMap& nodeRefMap, ArcRefMap& arcRefMap) { 397 to.clear();398 397 for (typename From::NodeIt it(from); it != INVALID; ++it) { 399 398 nodeRefMap[it] = to.addNode(); … … 423 422 static void copy(const From& from, Graph &to, 424 423 NodeRefMap& nodeRefMap, EdgeRefMap& edgeRefMap) { 425 to.clear();426 424 for (typename From::NodeIt it(from); it != INVALID; ++it) { 427 425 nodeRefMap[it] = to.addNode(); … … 447 445 448 446 } 449 450 /// \brief Check whether a graph is undirected.451 ///452 /// This function returns \c true if the given graph is undirected.453 #ifdef DOXYGEN454 template <typename GR>455 bool undirected(const GR& g) { return false; }456 #else457 template <typename GR>458 typename enable_if<UndirectedTagIndicator<GR>, bool>::type459 undirected(const GR&) {460 return true;461 }462 template <typename GR>463 typename disable_if<UndirectedTagIndicator<GR>, bool>::type464 undirected(const GR&) {465 return false;466 }467 #endif468 447 469 448 /// \brief Class to copy a digraph.
Note: See TracChangeset
for help on using the changeset viewer.