-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);
-}
-