Functor which connects vertices to form a torus of the given dimensions.
More...
|
| torus_neighbors (size_t x, size_t y, bool bidirectional) |
|
template<typename Vertex , typename Graph > |
void | operator() (Vertex v, Graph &view) |
|
|
size_t | m_x |
|
size_t | m_y |
|
bool | m_bidirectional |
|
Functor which connects vertices to form a torus of the given dimensions.
- See also
- make_torus
◆ torus_neighbors()
stapl::generators::detail::torus_neighbors::torus_neighbors |
( |
size_t |
x, |
|
|
size_t |
y, |
|
|
bool |
bidirectional |
|
) |
| |
- Parameters
-
x,y | Dimensions of the mesh. |
bidirectional | True to add back-edges in a directed graph. |
The documentation for this struct was generated from the following file: