Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <dag_shortest_path.h>
Public Attributes | |
int | from = 0 |
int | to = 0 |
double | length = 0.0 |
(b/332475231): extend to non-floating lengths.
(b/332476147): extend to allow for length functor.
This library provides a few APIs to compute the shortest path on a given directed acyclic graph (DAG).
In the DAG, multiple arcs between the same pair of nodes is allowed. However, self-loop arcs are not allowed.
from
and to
should both be in [0, num_nodes). If the length is +inf, then the arc should not be used. Definition at line 56 of file dag_shortest_path.h.
int operations_research::ArcWithLength::from = 0 |
Definition at line 57 of file dag_shortest_path.h.
double operations_research::ArcWithLength::length = 0.0 |
Definition at line 59 of file dag_shortest_path.h.
int operations_research::ArcWithLength::to = 0 |
Definition at line 58 of file dag_shortest_path.h.