diff --git a/lemon/graph_to_eps.h b/lemon/graph_to_eps.h --- a/lemon/graph_to_eps.h +++ b/lemon/graph_to_eps.h @@ -908,7 +908,7 @@ double l=std::sqrt(dvec.normSquare()); //\todo better 'epsilon' would be nice here. dim2::Point d(dvec/std::max(l,EPSILON)); - dim2::Point m; + dim2::Point m; // m=dim2::Point(mycoords[g.target(*i)]+ // mycoords[g.source(*i)])/2.0; @@ -916,7 +916,7 @@ // dvec*(double(_nodeSizes[g.source(*i)])/ // (_nodeSizes[g.source(*i)]+_nodeSizes[g.target(*i)])); - m=dim2::Point(mycoords[g.source(*i)])+ + m=dim2::Point(mycoords[g.source(*i)])+ d*(l+_nodeSizes[g.source(*i)]-_nodeSizes[g.target(*i)])/2.0; for(typename std::vector::iterator e=i;e!=j;++e) {