|
nxpp
Header-only graph utilities on top of Boost Graph Library
|

Public Member Functions | |
| template<typename T > | |
| EdgeAttrProxy & | operator= (const T &val) |
Sets attribute key on edge (u,v), creating the edge if it does not exist. | |
| template<typename T > | |
| operator T () const | |
Public Attributes | |
| Graph * | graph |
| NodeID | u |
| NodeID | v |
| std::string | key |
|
inline |
Sets attribute key on edge (u,v), creating the edge if it does not exist.
This is intentionally part of the write-oriented proxy surface. Pure-read helpers such as has_edge(...), get_edge_attr(...), and try_get_edge_attr(...) do not create implicitly.
References nxpp::Graph< NodeID, EdgeWeight, Directed, Multi, Weighted, OutEdgeSelector, VertexSelector >::get_edge_desc(), and nxpp::Graph< NodeID, EdgeWeight, Directed, Multi, Weighted, OutEdgeSelector, VertexSelector >::has_edge().