diff options
| author | Tim Dwyer <tgdwyer@gmail.com> | 2006-02-13 04:48:59 +0000 |
|---|---|---|
| committer | tgdwyer <tgdwyer@users.sourceforge.net> | 2006-02-13 04:48:59 +0000 |
| commit | bd4c6c0ff2d4ae46e808b54c66d15fe705ff176e (patch) | |
| tree | 82d99e7598634158fc66b7a7acb4f78e83bb0460 /src | |
| parent | added isConnector function (diff) | |
| download | inkscape-bd4c6c0ff2d4ae46e808b54c66d15fe705ff176e.tar.gz inkscape-bd4c6c0ff2d4ae46e808b54c66d15fe705ff176e.zip | |
cleanup
(bzr r125)
Diffstat (limited to 'src')
| -rw-r--r-- | src/graphlayout/graphlayout.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/graphlayout/graphlayout.cpp b/src/graphlayout/graphlayout.cpp index 238b39a23..dff414895 100644 --- a/src/graphlayout/graphlayout.cpp +++ b/src/graphlayout/graphlayout.cpp @@ -79,16 +79,13 @@ void graphlayout(GSList const *const items) { ++it) { SPItem *u=*it; - std::cout<<"id:"<<u->id<<std::endl; if(!isConnector(u)) { - std::cout<<" is a node."<<std::endl; + std::cout<<"Creating node for id: "<<u->id<<std::endl; nodelookup[u->id]=add_vertex(g); } } - WeightMap weightmap=get(edge_weight, g); - std::cout<<"Added vertices: Graph has |V|="<<num_vertices(g)<<std::endl; - NR::Point const gap(0, 0); + WeightMap weightmap=get(edge_weight, g); int i=0; for (std::list<SPItem *>::iterator it(selected.begin()); it != selected.end(); @@ -100,15 +97,12 @@ void graphlayout(GSList const *const items) { GSList *nlist=itu->avoidRef->getAttachedConnectors(Avoid::ConnRef::runningFrom); std::list<SPItem *> neighbours; neighbours.insert<GSListConstIterator<SPItem *> >(neighbours.end(),nlist,NULL); - std::cout<<" Node "<<itu->id<<" has "<<neighbours.size()<<" neighbours"<<std::endl; for (std::list<SPItem *>::iterator ne(neighbours.begin()); ne != neighbours.end(); ++ne) { SPItem *itv=*ne; - std::cout<<"neighbour: "<<itv->id<<std::endl; Vertex v=nodelookup[itv->id]; - std::cout<<" Neighbour: "<<v; Graph::edge_descriptor e; bool inserted; tie(e, inserted)=add_edge(u,v,g); weightmap[e]=1.0; |
