47vector<vpsc::Rectangle*>
rs;
56 typedef pair < unsigned, unsigned >
Edge;
58 const std::size_t E =
sizeof(edge_array) /
sizeof(
Edge);
60 copy(edge_array,edge_array+E,
es.begin());
63 for(
unsigned i=0;i<V;i++) {
68 const unsigned c[]={0,4}, d[]={1,2,3};
69 unsigned nc=
sizeof(
c)/
sizeof(
unsigned), nd=
sizeof(d)/
sizeof(
unsigned);
84 for(
unsigned i=0;i<V;i++) {
std::vector< Cluster * > clusters
std::set< unsigned > nodes
Implements the Constrained Majorization graph layout algorithm (deprecated).
void setAvoidOverlaps(bool horizontal=false)
At each iteration of layout, generate constraints to avoid overlaps.
void setScaling(bool scaling)
Scaling speeds up the solver by conditioning the quadratic terms matrix.
void run(bool x=true, bool y=true)
Implements the main layout loop, taking descent steps until stress is no-longer significantly reduced...
Defines a rectangular cluster, either variable-sized with floating sides or a fixed size based on a p...
Holds the cluster hierarchy specification for a diagram.
A rectangle represents a fixed-size shape in the diagram that may be moved to prevent overlaps and sa...
double getRand(double range)
vector< vpsc::Rectangle * > rs
libcola: Force-directed network layout subject to separation constraints library.
std::pair< unsigned, unsigned > Edge
Edges are simply a pair of indices to entries in the Node vector.