Represents an unweighted edge to a node identified by an ID. More...
#include <edge.h>
Public Types | |
| using | id_type = I |
| Alias for the node ID type. | |
Public Member Functions | |
| bool | operator< (const Edge &right) const |
| Less-than operator comparing node IDs. | |
| bool | operator== (const Edge &other) const |
| Equality operator comparing node IDs. | |
| template<typename D> requires GraphLib::Internal::is_printable<D> && GraphLib::Internal::valid_data_type<D> | |
| void | print_with_data (std::ostream &os, D value) const |
| Prints an unweighted Edge with its data instead of ID. | |
Public Attributes | |
| id_type | node_id {} |
| The ID of the node this edge points to. | |
Represents an unweighted edge to a node identified by an ID.
| I | Type of the node ID; must satisfy the valid_id_type concept. |
| using GraphLib::Internal::Edge< I >::id_type = I |
|
inline |
|
inline |
|
inline |
| id_type GraphLib::Internal::Edge< I >::node_id {} |