Functor which connects vertices with their k-nearest neighbors to form a Watts-Strogatz graph.
More...
|
| ws_neighbors (size_t i, size_t n, bool bidirectional) |
|
template<typename Vertex , typename Graph > |
void | operator() (Vertex v, Graph &view) |
|
|
size_t | m_i |
|
size_t | m_n |
|
bool | m_bidirectional |
|
Functor which connects vertices with their k-nearest neighbors to form a Watts-Strogatz graph.
- See also
- make_watts_strogatz
-
make_newman_watts_strogatz
◆ ws_neighbors()
stapl::generators::detail::ws_neighbors::ws_neighbors |
( |
size_t |
i, |
|
|
size_t |
n, |
|
|
bool |
bidirectional |
|
) |
| |
- Parameters
-
i | Distance of neighbor to connect to. |
n | Size of the graph. |
bidirectional | True to add backedges, false otherwise. |
The documentation for this struct was generated from the following file: