| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | class WeightedEdgeSpecifics extends UniformEdgeSpecifics |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Get the edge weight |
||
| 17 | * |
||
| 18 | * @param EdgeInterface $edge - the edge |
||
| 19 | * |
||
| 20 | * @return float |
||
| 21 | */ |
||
| 22 | 1 | public function getEdgeWeight(EdgeInterface $edge): float |
|
| 23 | { |
||
| 24 | 1 | return $edge->getWeight(); |
|
|
|
|||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Set the edge weight |
||
| 29 | * |
||
| 30 | * @param EdgeInterface $edge - the edge |
||
| 31 | * @param float $weight - the weight |
||
| 32 | */ |
||
| 33 | 2 | public function setEdgeWeight(EdgeInterface $edge, float $weight): void |
|
| 36 | 2 | } |
|
| 37 | } |
||
| 38 |