connected_components.cpp revision c5cda419f16ce7d9d58a09852d5af83c7c25b9d1
#include <map>
#include "cola.h"
#include <libvpsc/remove_rectangle_overlap.h>
using namespace std;
namespace cola {
delete scx[i];
}
delete scy[i];
}
}
void Component::moveRectangles(double x, double y) {
}
}
}
}
namespace ccomponents {
struct Node {
unsigned id;
bool visited;
Rectangle* r;
};
// Depth first search traversal of graph to find connected component
v->visited=true;
for(unsigned i=0;i<v->neighbours.size();i++) {
Node* u=v->neighbours[i];
if(!u->visited) {
}
}
}
}
using namespace ccomponents;
// for a graph of n nodes, return connected components
void connectedComponents(
const SimpleConstraints &scx,
const SimpleConstraints &scy,
for(unsigned i=0;i<n;i++) {
}
}
}
}
SimpleConstraint *c=*ci;
}
SimpleConstraint *c=*ci;
}
}
unsigned n=components.size();
for(unsigned i=0;i<n;i++) {
}
removeRectangleOverlap(n,bbs,0,0);
for(unsigned i=0;i<n;i++) {
components[i]->moveRectangles(
delete bbs[i];
}
}
}
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4