Changeset 1791:62e7d237e1fb in lemon0.x for lemon/hypercube_graph.h
 Timestamp:
 11/14/05 19:38:41 (14 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2332
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/hypercube_graph.h
r1703 r1791 22 22 #include <lemon/invalid.h> 23 23 #include <lemon/utility.h> 24 #include <lemon/error.h> 24 25 25 26 #include <lemon/bits/iterable_graph_extender.h> 26 27 #include <lemon/bits/alteration_notifier.h> 27 28 #include <lemon/bits/default_map.h> 29 #include <lemon/bits/graph_extender.h> 28 30 29 31 ///\ingroup graphs … … 33 35 namespace lemon { 34 36 35 /// \brief Base graph for Hyper Graph.37 /// \brief Base graph for HyperCubeGraph. 36 38 /// 37 39 /// Base graph for hypercube graph. It describes some member functions … … 78 80 /// Maximum node ID. 79 81 ///\sa id(Node) 80 int max Id(Node = INVALID) const { return nodeNum()  1; }82 int maxNodeId() const { return nodeNum()  1; } 81 83 /// Maximum edge ID. 82 84 83 85 /// Maximum edge ID. 84 86 ///\sa id(Edge) 85 int max Id(Edge = INVALID) const { return edgeNum()  1; }87 int maxEdgeId() const { return edgeNum()  1; } 86 88 87 89 /// \brief Gives back the source node of an edge. … … 119 121 static int id(Edge e) { return e.id; } 120 122 121 static Node fromId(int id, Node) { return Node(id);}122 123 static Edge fromId(int id, Edge) { return Edge(id);}123 static Node nodeFromId(int id) { return Node(id);} 124 125 static Edge edgeFromId(int id) { return Edge(id);} 124 126 125 127 class Node { … … 236 238 IterableGraphExtender< 237 239 AlterableGraphExtender< 238 HyperCubeGraphBase > > > ExtendedHyperCubeGraphBase; 240 GraphExtender< 241 HyperCubeGraphBase> > > > ExtendedHyperCubeGraphBase; 239 242 240 243 /// \ingroup graphs … … 308 311 T fv = 0.0, const BF& bf = BF()) 309 312 : _graph(graph), _values(begin, end), _first_value(fv), _bin_func(bf) { 310 if (_values.size() != graph.dimension()) {} 313 LEMON_ASSERT(_values.size() != graph.dimension(), 314 "Wrong size of dimension"); 311 315 } 312 316
Note: See TracChangeset
for help on using the changeset viewer.