connected_components.cpp revision 7201e2073c415e91642d7704773ab7e0c24b7654
#include <map>
#include "cola.h"
using namespace std;
namespace cola {
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;
}
}
}
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4