COIN-OR::LEMON - Graph Library

Changeset 1047:a6094968ed09 in lemon-0.x


Ignore:
Timestamp:
01/04/05 18:16:35 (15 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1441
Message:

Bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/alpar/graph_to_eps.cc

    r1046 r1047  
    206206  ListGraph::NodeMap<double> sizes(g);
    207207  ListGraph::NodeMap<int> colors(g);
    208   ListGraph::EdgeMap<int> ecolors(g,0);
     208  ListGraph::EdgeMap<int> ecolors(g);
    209209 
    210210  coords[n1]=Xy(50,50);  sizes[n1]=1; colors[n1]=1;
     
    216216  Edge e;
    217217
    218   e=g.addEdge(n1,n2);
    219   e=g.addEdge(n2,n3);
    220   e=g.addEdge(n3,n5);
    221   e=g.addEdge(n5,n4);
    222   e=g.addEdge(n4,n1);
     218  e=g.addEdge(n1,n2); ecolors[e]=0;
     219  e=g.addEdge(n2,n3); ecolors[e]=0;
     220  e=g.addEdge(n3,n5); ecolors[e]=0;
     221  e=g.addEdge(n5,n4); ecolors[e]=0;
     222  e=g.addEdge(n4,n1); ecolors[e]=0;
    223223  e=g.addEdge(n2,n4); ecolors[e]=1;
    224224  e=g.addEdge(n3,n4); ecolors[e]=2;
Note: See TracChangeset for help on using the changeset viewer.