Changeset 334:63703ea7d02f in lemon-0.x for src/work/marci/graph_concept.h
- Timestamp:
- 04/15/04 22:50:03 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@453
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci/graph_concept.h
r333 r334 110 110 }; 111 111 112 /// This iterator goes trough the outgoing edges of a node.113 114 /// This iterator goes trough the \e outgoing edges of a certain node115 /// of a graph.116 /// Its usage is quite simple, for example you can count the number117 /// of outgoing edges of a node \c n118 /// in graph \c G of type \c Graph as follows.119 /// \code120 ///int count=0;121 ///for(Graph::OutEdgeIt e(G,n);G.valid(e);G.next(e)) count++;122 /// \endcode123 124 class OutEdgeIt : public Edge {125 public:126 /// @warning The default constructor sets the iterator127 /// to an undefined value.128 OutEdgeIt() {}129 /// Initialize the iterator to be invalid130 OutEdgeIt(Invalid) {}131 /// This constructor sets the iterator to first outgoing edge.132 133 /// This constructor set the iterator to the first outgoing edge of134 /// node135 ///@param n the node136 ///@param G the graph137 OutEdgeIt(const GraphSkeleturo & G, Node n) {}138 };139 140 /// This iterator goes trough the incoming edges of a node.141 142 /// This iterator goes trough the \e incoming edges of a certain node143 /// of a graph.144 /// Its usage is quite simple, for example you can count the number145 /// of outgoing edges of a node \c n146 /// in graph \c G of type \c Graph as follows.147 /// \code148 ///int count=0;149 ///for(Graph::InEdgeIt e(G,n);G.valid(e);G.next(e)) count++;150 /// \endcode151 152 class InEdgeIt : public Edge {153 public:154 /// @warning The default constructor sets the iterator155 /// to an undefined value.156 InEdgeIt() {}157 /// Initialize the iterator to be invalid158 InEdgeIt(Invalid) {}159 InEdgeIt(const GraphSkeleturo &, Node) {}160 };161 112 // class SymEdgeIt : public Edge {}; 162 113 … … 365 316 }; 366 317 318 /// An empty out-edge-iterable graph class. 319 320 /// An empty graph class which provides a function to 321 /// iterate on out-edges of any node. 322 class OutEdgeIterableGraphSkeleturo : public GraphSkeleturo 323 { 324 public: 325 326 /// This iterator goes trough the outgoing edges of a node. 327 328 /// This iterator goes trough the \e outgoing edges of a certain node 329 /// of a graph. 330 /// Its usage is quite simple, for example you can count the number 331 /// of outgoing edges of a node \c n 332 /// in graph \c G of type \c Graph as follows. 333 /// \code 334 ///int count=0; 335 ///for(Graph::OutEdgeIt e(G,n); G.valid(e); G.next(e)) ++count; 336 /// \endcode 337 class OutEdgeIt : public Edge { 338 public: 339 /// @warning The default constructor sets the iterator 340 /// to an undefined value. 341 OutEdgeIt() {} 342 /// Initialize the iterator to be invalid 343 OutEdgeIt(Invalid) {} 344 /// This constructor sets the iterator to first outgoing edge. 345 346 /// This constructor set the iterator to the first outgoing edge of 347 /// node 348 ///@param n the node 349 ///@param G the graph 350 OutEdgeIt(const GraphSkeleturo & G, Node n) {} 351 }; 352 }; 353 354 /// An empty in-edge-iterable graph class. 355 356 /// An empty graph class which provides a function to 357 /// iterate on in-edges of any node. 358 class InEdgeIterableGraphSkeleturo : public GraphSkeleturo 359 { 360 public: 361 362 /// This iterator goes trough the incoming edges of a node. 363 364 /// This iterator goes trough the \e incoming edges of a certain node 365 /// of a graph. 366 /// Its usage is quite simple, for example you can count the number 367 /// of incoming edges of a node \c n 368 /// in graph \c G of type \c Graph as follows. 369 /// \code 370 ///int count=0; 371 ///for(Graph::InEdgeIt e(G,n); G.valid(e); G.next(e)) ++count; 372 /// \endcode 373 class InEdgeIt : public Edge { 374 public: 375 /// @warning The default constructor sets the iterator 376 /// to an undefined value. 377 InEdgeIt() {} 378 /// Initialize the iterator to be invalid 379 InEdgeIt(Invalid) {} 380 /// This constructor sets the iterator to first incomig edge. 381 382 /// This constructor set the iterator to the first incomig edge of 383 /// node 384 ///@param n the node 385 ///@param G the graph 386 InEdgeIt(const GraphSkeleturo & G, Node n) {} 387 }; 388 }; 389 390 367 391 /// An empty node-eraseable graph class. 368 392
Note: See TracChangeset
for help on using the changeset viewer.