133 using Node =
typename nodeview_t::value_type;
149 explicit NodeView(nodeview_t& nodes) : _nodes{nodes} {}
162 auto begin()
const {
return std::begin(this->_nodes); }
168 auto end()
const {
return std::end(this->_nodes); }
Read-only map of maps of maps (view into a dict-of-dict-of-dict structure)
Definition coreviews.hpp:109
auto size() const -> size_t
Get the number of elements in the view.
Definition coreviews.hpp:49
NodeView class - acts as gra.nodes() for an XNetwork Graph.
Definition reportviews.hpp:130
auto end() const
Get iterator to the end of the view.
Definition reportviews.hpp:168
auto contains(const Node &node) const -> bool
Check if a node exists in the view.
Definition reportviews.hpp:190
auto begin() const
Get iterator to the beginning of the view.
Definition reportviews.hpp:162
auto size() const
Get the number of nodes in the view.
Definition reportviews.hpp:156
auto operator[](const Node &node) const -> const auto &
Access node data at specified node (const version)
Definition reportviews.hpp:175
auto operator[](const Node &node) -> auto &
Access node data at specified node (non-const version)
Definition reportviews.hpp:182
NodeView(nodeview_t &nodes)
Construct a NodeView from a node container.
Definition reportviews.hpp:149
Definition digraphs.hpp:24