COIN-OR::LEMON - Graph Library

Changeset 1976:a71f388045f9 in lemon-0.x for lemon


Ignore:
Timestamp:
02/21/06 09:48:11 (14 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2561
Message:

Fix bug #26: Check if an edge is a loop and do not draw then

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_to_eps.h

    r1971 r1976  
    844844        std::vector<Edge> el;
    845845        for(EdgeIt e(g);e!=INVALID;++e)
    846           if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0)
     846          if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0
     847             &&g.source(e)!=g.target(e))
    847848            el.push_back(e);
    848849        std::sort(el.begin(),el.end(),edgeLess(g));
     
    932933      }
    933934      else for(EdgeIt e(g);e!=INVALID;++e)
    934         if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0)
     935        if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0
     936           &&g.source(e)!=g.target(e))
    935937          if(_drawArrows) {
    936938            xy<double> d(mycoords[g.target(e)]-mycoords[g.source(e)]);
Note: See TracChangeset for help on using the changeset viewer.