Try out different costs
This commit is contained in:
parent
d99b3d49e0
commit
c40153be9f
1 changed files with 3 additions and 3 deletions
|
|
@ -38,11 +38,11 @@ struct DijkstraLinkInfo {
|
|||
}
|
||||
|
||||
impl DijkstraLinkInfo {
|
||||
const BASE_COST: u32 = 1000;
|
||||
|
||||
fn from_link_info(info: LinkInfo) -> Self {
|
||||
Self {
|
||||
cost: Self::BASE_COST + info.start,
|
||||
cost: 1,
|
||||
// cost: 1000 + info.start,
|
||||
// cost: 1000 + info.start / 10,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue