src/lemon/concept/graph_component.h
changeset 962 1a770e9f80b2
parent 961 289d80c33f04
child 964 2c0c20e90116
     1.1 --- a/src/lemon/concept/graph_component.h	Thu Nov 04 22:04:51 2004 +0000
     1.2 +++ b/src/lemon/concept/graph_component.h	Fri Nov 05 00:31:49 2004 +0000
     1.3 @@ -263,15 +263,14 @@
     1.4  	function_requires< GraphItemConcept<Node> >();
     1.5  	function_requires< GraphItemConcept<Edge> >();
     1.6  	{
     1.7 -	  const Graph& const_graph = graph;
     1.8  	  Node n;
     1.9  	  Edge e;
    1.10 -	  n = const_graph.tail(e);
    1.11 -	  n = const_graph.head(e);
    1.12 +	  n = graph.tail(e);
    1.13 +	  n = graph.head(e);
    1.14  	}      
    1.15        }
    1.16        
    1.17 -      Graph& graph;
    1.18 +      const Graph& graph;
    1.19      };
    1.20  
    1.21      /// An empty iterable base graph class.
    1.22 @@ -645,7 +644,6 @@
    1.23      
    1.24      template <typename Graph> 
    1.25      struct IterableGraphComponentConcept {
    1.26 -
    1.27        void constraints() {
    1.28    	function_requires< BaseIterableGraphComponentConcept<Graph> >();
    1.29  
    1.30 @@ -661,7 +659,6 @@
    1.31  	function_requires< GraphIncIteratorConcept<OutEdgeIt, Graph> >();
    1.32  	function_requires< GraphIncIteratorConcept<InEdgeIt, Graph> >();
    1.33        }
    1.34 -      Graph& graph;
    1.35      };
    1.36  
    1.37