Class Graph::NeighborIterator

Nested Relationships

This class is a nested type of Class Graph.

Class Documentation

class NeighborIterator

Class to iterate over the in/out neighbors of a node.

Public Types

using value_type = node
using reference = value_type&
using pointer = value_type*
using iterator_category = std::forward_iterator_tag
using difference_type = ptrdiff_t
using self = NeighborIterator

Public Functions

inline NeighborIterator(std::vector<node>::const_iterator nodesIter)
inline NeighborIterator()

WARNING: This contructor is required for Python and should not be used as the iterator is not initialized.

inline NeighborIterator &operator++()
inline NeighborIterator operator++(int)
inline NeighborIterator operator--()
inline NeighborIterator operator--(int)
inline bool operator==(const NeighborIterator &rhs) const
inline bool operator!=(const NeighborIterator &rhs) const
inline node operator*() const