COIN-OR::LEMON - Graph Library

Changeset 189:8b69c54d5bf0 in glemon-0.x


Ignore:
Timestamp:
02/20/07 16:46:19 (13 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3192
Message:

No segmentation fault will be occured if two nodes are exactly overlap each other, AND they are connected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gdc-broken_edge.cc

    r174 r189  
    9494  double length=sqrt( unit_vector_in_dir.normSquare() );
    9595
    96   unit_vector_in_dir/=length;
     96  if(length!=0)
     97    {
     98      unit_vector_in_dir/=length;
     99    }
    97100
    98101  // update the arrow
Note: See TracChangeset for help on using the changeset viewer.