|
Utopia 2
Framework for studying models of complex & adaptive systems.
|

Namespaces | |
| namespace | Utopia::GraphUtils |
Enumerations | |
| enum class | Utopia::IterateOver { Utopia::IterateOver::vertices , Utopia::IterateOver::edges , Utopia::IterateOver::neighbors , Utopia::IterateOver::inv_neighbors , Utopia::IterateOver::in_edges , Utopia::IterateOver::out_edges } |
| Over which graph entity to iterate. More... | |
Functions | |
| template<IterateOver iterate_over, typename Graph > | |
| decltype(auto) | Utopia::range (const Graph &g) |
| Get the iterator range over selected graph entities. | |
| template<IterateOver iterate_over, typename Graph , typename EntityDesc > | |
| decltype(auto) | Utopia::range (EntityDesc e, const Graph &g) |
| Get the iterator range over selected graph entities. | |
|
strong |
Over which graph entity to iterate.
| decltype(auto) Utopia::range | ( | const Graph & | g | ) |
Get the iterator range over selected graph entities.
| iterate_over | Specify over which graph entities to iterate over Valid options: |
| Graph | The graph type |
| g | The graph |
| decltype(auto) Utopia::range | ( | EntityDesc | e, |
| const Graph & | g | ||
| ) |
Get the iterator range over selected graph entities.
This function returns the iterator range wrt. another graph entity. For example iterating of the neighbors (adjacent_vertices) of a vertex requires a vertex descriptor as reference.
| iterate_over | Specify over which graph entities to iterate over Valid options:
|
| Graph | The graph type |
| EntityDesc | The graph entity descriptor that is the reference point for the iteration. |
| e | The graph entity that serves as reference |
| g | The graph |