# HG changeset patch # User marci # Date 1080040368 0 # Node ID 7fb8b67d2c5e2a594dc6eb5fa0538989246153eb # Parent ea3de9530ee885d5575751cbec95b633cfe77964 . diff -r ea3de9530ee8 -r 7fb8b67d2c5e src/work/athos/xy/xy.h --- a/src/work/athos/xy/xy.h Mon Mar 22 17:27:20 2004 +0000 +++ b/src/work/athos/xy/xy.h Tue Mar 23 11:12:48 2004 +0000 @@ -17,10 +17,10 @@ public: ///Default constructor: both coordinates become 0 - xy() { _x=_y=0; } + xy() : _x(0), _y(0 ){ /*_x=_y=0;*/ } ///Constructing from coordinates - xy(T a, T b) { _x=a; _y=b; } + xy(T a, T b) : _x(a), _x(b) { /*_x=a; _y=b;*/ } ///Gives back the x coordinate T x(){ diff -r ea3de9530ee8 -r 7fb8b67d2c5e src/work/marci/graph_wrapper.h --- a/src/work/marci/graph_wrapper.h Mon Mar 22 17:27:20 2004 +0000 +++ b/src/work/marci/graph_wrapper.h Tue Mar 23 11:12:48 2004 +0000 @@ -328,8 +328,15 @@ template class RevGraphWrapper : public GraphWrapperSkeleton { public: + typedef typename GraphWrapperSkeleton::Node Node; + typedef typename GraphWrapperSkeleton::Edge Edge; typedef typename GraphWrapperSkeleton::OutEdgeIt InEdgeIt; typedef typename GraphWrapperSkeleton::InEdgeIt OutEdgeIt; + + Node head(const Edge& e) const + { return GraphWrapperSkeleton::tail(e); } + Node tail(const Edge& e) const + { return GraphWrapperSkeleton::head(e); } RevGraphWrapper(GraphWrapper _gw) : GraphWrapperSkeleton(_gw) { }