gravatar
kpeter (Peter Kovacs)
kpeter@inf.elte.hu
Fix various rename bugs
0 3 0
default
3 files changed with 9 insertions and 11 deletions:
↑ Collapse diff ↑
Ignore white space 6 line context
... ...
@@ -1421,14 +1421,14 @@
1421 1421
      template <typename _Graph>
1422 1422
      struct Constraints {
1423 1423
	void constraints() {
1424 1424
          checkConcept<Base, _Graph>();
1425 1425
	  typename _Graph::Node node;
1426 1426
	  graph.erase(node);
1427
	  typename _Graph::Arc arc;
1428
	  graph.erase(arc);
1427
	  typename _Graph::Edge edge;
1428
	  graph.erase(edge);
1429 1429
	}
1430 1430

	
1431 1431
	_Graph& graph;
1432 1432
      };
1433 1433
    };
1434 1434

	
Ignore white space 12 line context
... ...
@@ -19,22 +19,20 @@
19 19
#ifndef LEMON_DIJKSTRA_H
20 20
#define LEMON_DIJKSTRA_H
21 21

	
22 22
///\ingroup shortest_path
23 23
///\file
24 24
///\brief Dijkstra algorithm.
25
///
26 25

	
27
#include <lemon/list_digraph.h>
26
#include <lemon/list_graph.h>
28 27
#include <lemon/bin_heap.h>
29 28
#include <lemon/bits/path_dump.h>
30 29
#include <lemon/bits/invalid.h>
31 30
#include <lemon/error.h>
32 31
#include <lemon/maps.h>
33 32

	
34

	
35 33
namespace lemon {
36 34

	
37 35
  /// \brief Default OperationTraits for the Dijkstra algorithm class.
38 36
  ///  
39 37
  /// It defines all computational operations and constants which are
40 38
  /// used in the Dijkstra algorithm.
Ignore white space 6 line context
... ...
@@ -399,26 +399,26 @@
399 399
      static Edge find(const Graph &g, Node u, Node v, Edge e) {
400 400
        bool b;
401 401
        if (u != v) {
402 402
          if (e == INVALID) {
403 403
            g.firstInc(e, b, u);
404 404
          } else {
405
            b = g.source(e) == u;
405
            b = g.u(e) == u;
406 406
            g.nextInc(e, b);
407 407
          }
408
          while (e != INVALID && (b ? g.target(e) : g.source(e)) != v) {
408
          while (e != INVALID && (b ? g.v(e) : g.u(e)) != v) {
409 409
            g.nextInc(e, b);
410 410
          }
411 411
        } else {
412 412
          if (e == INVALID) {
413 413
            g.firstInc(e, b, u);
414 414
          } else {
415 415
            b = true;
416 416
            g.nextInc(e, b);
417 417
          }
418
          while (e != INVALID && (!b || g.target(e) != v)) {
418
          while (e != INVALID && (!b || g.v(e) != v)) {
419 419
            g.nextInc(e, b);
420 420
          }
421 421
        }
422 422
        return e;
423 423
      }
424 424
    };
... ...
@@ -452,13 +452,13 @@
452 452
  /// for(Edge e = findEdge(g,u,v); e != INVALID; 
453 453
  ///     e = findEdge(g,u,v,e)) {
454 454
  ///   ...
455 455
  /// }
456 456
  ///\endcode
457 457
  ///
458
  ///\sa ConArcIt
458
  ///\sa ConEdgeIt
459 459

	
460 460
  template <typename Graph>
461 461
  inline typename Graph::Edge 
462 462
  findEdge(const Graph &g, typename Graph::Node u, typename Graph::Node v,
463 463
            typename Graph::Edge p = INVALID) {
464 464
    return _graph_utils_bits::FindEdgeSelector<Graph>::find(g, u, v, p);
... ...
@@ -501,14 +501,14 @@
501 501
    ConEdgeIt(const Graph& g, Edge e) : Parent(e), _graph(g) {}
502 502
    
503 503
    /// \brief Increment operator.
504 504
    ///
505 505
    /// It increments the iterator and gives back the next edge.
506 506
    ConEdgeIt& operator++() {
507
      Parent::operator=(findEdge(_graph, _graph.source(*this), 
508
				 _graph.target(*this), *this));
507
      Parent::operator=(findEdge(_graph, _graph.u(*this), 
508
				 _graph.v(*this), *this));
509 509
      return *this;
510 510
    }
511 511
  private:
512 512
    const Graph& _graph;
513 513
  };
514 514

	
0 comments (0 inline)