xbt_dynar_free(&args);
}
-void deployment_line::generate()
-{
- for (unsigned i = 0 ; i < size() - 1 ; ++i)
- set_link(i, i + 1);
-}
-
-void deployment_ring::generate()
-{
- set_neighbor(0, size() - 1);
- for (unsigned i = 0 ; i < size() - 1 ; ++i)
- set_link(i, i + 1);
- set_neighbor(size() - 1, 0);
-}
-
-void deployment_star::generate()
-{
- for (unsigned i = 1 ; i < size() ; ++i)
- set_link(0, i);
-}
-
-void deployment_clique::generate()
-{
- for (unsigned i = 0 ; i < size() ; ++i)
- for (unsigned j = 0 ; j < i ; ++j)
- set_link(i, j);
-}
-
void deployment_btree::generate()
{
for (unsigned i = 0 ; i < size() / 2 ; ++i) {
}
}
-// void deployment_torus::generate()
-// {
-// }
+void deployment_clique::generate()
+{
+ for (unsigned i = 0 ; i < size() ; ++i)
+ for (unsigned j = 0 ; j < i ; ++j)
+ set_link(i, j);
+}
void deployment_hcube::generate()
{
set_link(i, j);
}
}
+
+void deployment_line::generate()
+{
+ for (unsigned i = 0 ; i < size() - 1 ; ++i)
+ set_link(i, i + 1);
+}
+
+void deployment_ring::generate()
+{
+ set_neighbor(0, size() - 1);
+ for (unsigned i = 0 ; i < size() - 1 ; ++i)
+ set_link(i, i + 1);
+ set_neighbor(size() - 1, 0);
+}
+
+void deployment_star::generate()
+{
+ for (unsigned i = 1 ; i < size() ; ++i)
+ set_link(0, i);
+}
+
+// void deployment_torus::generate()
+// {
+// }