src/demo/graph_to_eps_demo.cc
changeset 1090 9e9195331ea6
parent 1086 caa13d291528
child 1091 c756973cd53c
equal deleted inserted replaced
1:a1554066c372 2:e855eca4340a
    70   ListGraph::NodeMap<int> shapes(g);
    70   ListGraph::NodeMap<int> shapes(g);
    71   ListGraph::EdgeMap<int> ecolors(g);
    71   ListGraph::EdgeMap<int> ecolors(g);
    72   ListGraph::EdgeMap<int> widths(g);
    72   ListGraph::EdgeMap<int> widths(g);
    73   
    73   
    74   coords[n1]=Xy(50,50);  sizes[n1]=1; colors[n1]=1; shapes[n1]=0;
    74   coords[n1]=Xy(50,50);  sizes[n1]=1; colors[n1]=1; shapes[n1]=0;
    75   coords[n2]=Xy(50,70);  sizes[n2]=2; colors[n2]=2; shapes[n2]=0;
    75   coords[n2]=Xy(50,70);  sizes[n2]=2; colors[n2]=2; shapes[n2]=2;
    76   coords[n3]=Xy(70,70);  sizes[n3]=1; colors[n3]=3; shapes[n3]=0;
    76   coords[n3]=Xy(70,70);  sizes[n3]=1; colors[n3]=3; shapes[n3]=0;
    77   coords[n4]=Xy(70,50);  sizes[n4]=2; colors[n4]=4; shapes[n4]=1;
    77   coords[n4]=Xy(70,50);  sizes[n4]=2; colors[n4]=4; shapes[n4]=1;
    78   coords[n5]=Xy(85,60);  sizes[n5]=3; colors[n5]=5; shapes[n5]=0;
    78   coords[n5]=Xy(85,60);  sizes[n5]=3; colors[n5]=5; shapes[n5]=2;
    79   
    79   
    80   Edge e;
    80   Edge e;
    81 
    81 
    82   e=g.addEdge(n1,n2); ecolors[e]=0; widths[e]=1;
    82   e=g.addEdge(n1,n2); ecolors[e]=0; widths[e]=1;
    83   e=g.addEdge(n2,n3); ecolors[e]=0; widths[e]=1;
    83   e=g.addEdge(n2,n3); ecolors[e]=0; widths[e]=1;