COIN-OR::LEMON - Graph Library

Changeset 354:0e8eb96c22ca in lemon-0.x


Ignore:
Timestamp:
04/20/04 15:43:36 (20 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@479
Message:

UndirListGraph?, somebody should try it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/list_graph.h

    r335 r354  
    506506      //node_item* v;
    507507      //protected:
    508     public: //for alpar
     508    protected: //for alpar
    509509      SymEdgeIt(const Node& _v) /*: v(_v.node)*/ {
    510510        out_or_in=1;
     
    537537        return (out_or_in) ? Node(edge->_head) : Node(edge->_tail); }
    538538    };
    539 
    540539  };
    541540
    542 //   template< typename T >
    543 //   T ListGraph::first() const {
    544 //     std::cerr << "Invalid use of template<typemane T> T ListGraph::first<T>();" << std::endl;
    545 //     return T();
    546 //   }
    547 
    548 //   template<>
    549 //   ListGraph::NodeIt ListGraph::first<ListGraph::NodeIt>() const {
    550 //     return firstNode();
    551 //   }
    552 
    553 //   template<>
    554 //   ListGraph::EdgeIt ListGraph::first<ListGraph::EdgeIt>() const {
    555 //     return firstEdge();
    556 //   }
    557 
    558 //   template< typename T >
    559 //   T ListGraph::first(ListGraph::Node v) const {
    560 //     std::cerr << "Invalid use of template<typemane T> T ListGraph::first<T>(ListGRaph::Node);" << std::endl;
    561 //     return T();
    562 //   }
    563 
    564 //   template<>
    565 //   ListGraph::OutEdgeIt ListGraph::first<ListGraph::OutEdgeIt>(const ListGraph::Node v) const {
    566 //     return firstOutEdge(v);
    567 //   }
    568 
    569 //   template<>
    570 //   ListGraph::InEdgeIt ListGraph::first<ListGraph::InEdgeIt>(const ListGraph::Node v) const {
    571 //     return firstInEdge(v);
    572 //   }
    573 
    574 //   template<>
    575 //   ListGraph::SymEdgeIt ListGraph::first<ListGraph::SymEdgeIt>(const ListGraph::Node v) const {
    576 //     return firstSymEdge(v);
    577 //   }
    578 
     541  class UndirListGraph : public ListGraph {
     542    typedef SymEdgeIt OutEdgeIt;
     543    typedef SymEdgeIt InEdgeIt;
     544  };
    579545
    580546} //namespace hugo
Note: See TracChangeset for help on using the changeset viewer.