connected_components.cpp revision fb5bcb25b81fe8e1f5903072c6005b3328c545a9
#include <map>
#include <list>
#include <libvpsc/remove_rectangle_overlap.h>
#include "cola.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