|
|
geometry::PolyLine | m_geometry |
|
Id | m_id |
|
std::pair< Id, Id > | m_nodePair |
|
std::optional< double > | m_betweennessCentrality {std::nullopt} |
|
std::optional< double > | m_weight {std::nullopt} |
|
double | m_angle |
◆ Edge()
Construct a new Edge object.
- Parameters
-
| id | The edge's id |
| nodePair | The edge's node pair (u, v) with the edge u -> v |
| geometry | The edge's geometry, a vector of pairs of doubles representing the coordinates of the edge's geometry. Default is an empty vector. |
◆ angle()
| auto dsf::Edge::angle |
( |
| ) |
const |
|
inline |
Get the edge's angle, in radians, between the source and target nodes.
- Returns
- double The edge's angle, in radians
◆ betweennessCentrality()
| auto const & dsf::Edge::betweennessCentrality |
( |
| ) |
const |
|
inline |
Get the edge's betweenness centrality.
- Returns
- std::optional<double> The edge's betweenness centrality
◆ geometry()
| auto const & dsf::Edge::geometry |
( |
| ) |
const |
|
inline |
Get the edge's geometry.
- Returns
- dsf::geometry::PolyLine The edge's geometry, a vector of pairs of doubles representing the coordinates of the edge's geometry
◆ id()
| auto dsf::Edge::id |
( |
| ) |
const |
|
inline |
Get the edge's id.
- Returns
- Id The edge's id
◆ isFull()
| virtual bool dsf::Edge::isFull |
( |
| ) |
const |
|
pure virtual |
◆ nodePair()
| auto const & dsf::Edge::nodePair |
( |
| ) |
const |
|
inline |
Get the edge's node pair.
- Returns
- std::pair<Id, Id> The edge's node pair, where the first element is the source node id and the second element is the target node id. The pair is (u, v) with the edge u -> v.
◆ setBetweennessCentrality()
| void dsf::Edge::setBetweennessCentrality |
( |
double const | betweennessCentrality | ) |
|
|
inline |
Set the edge's betweenness centrality.
- Parameters
-
◆ setGeometry()
Set the edge's geometry.
- Parameters
-
◆ setWeight()
| void dsf::Edge::setWeight |
( |
double const | weight | ) |
|
Set the edge's weight.
- Parameters
-
- Exceptions
-
| std::invalid_argument | if the weight is less or equal to 0 |
◆ source()
| auto dsf::Edge::source |
( |
| ) |
const |
|
inline |
Get the edge's source node id.
- Returns
- Id The edge's source node id
◆ target()
| auto dsf::Edge::target |
( |
| ) |
const |
|
inline |
Get the edge's target node id.
- Returns
- Id The edge's target node id
◆ weight()
| double dsf::Edge::weight |
( |
| ) |
const |
Get the edge's weight.
- Returns
- double The edge's weight
The documentation for this class was generated from the following files:
- src/dsf/base/Edge.hpp
- src/dsf/base/Edge.cpp