|
XNetwork 1.7.5; VERSION ${PROJECT_VERSION}
|
NodeView class - acts as gra.nodes() for an XNetwork Graph. More...
#include <reportviews.hpp>
Public Member Functions | |
| NodeView (nodeview_t &nodes) | |
| Construct a NodeView from a node container. | |
| auto | size () const |
| Get the number of nodes in the view. | |
| auto | begin () const |
| Get iterator to the beginning of the view. | |
| auto | end () const |
| Get iterator to the end of the view. | |
| auto | operator[] (const Node &node) const -> const auto & |
| Access node data at specified node (const version) | |
| auto | operator[] (const Node &node) -> auto & |
| Access node data at specified node (non-const version) | |
| auto | contains (const Node &node) const -> bool |
| Check if a node exists in the view. | |
NodeView class - acts as gra.nodes() for an XNetwork Graph.
Set operations act on the nodes without considering data. Iteration is over nodes. Node data can be looked up like a dict.
| nodeview_t | The underlying node container type |
|
inlineexplicit |
Construct a NodeView from a node container.
| nodes | The node container to create a view of |
|
inline |
Get iterator to the beginning of the view.
|
inline |
Check if a node exists in the view.
| node | The node to check for |
|
inline |
Get iterator to the end of the view.
|
inline |
Access node data at specified node (non-const version)
| node | The node to access |
|
inline |
Access node data at specified node (const version)
| node | The node to access |
|
inline |
Get the number of nodes in the view.