Fix edgecases resulting in conflict loops.
This commit is contained in:
parent
a145c4b70c
commit
8c29cb1e53
3 changed files with 180 additions and 138 deletions
|
|
@ -70,7 +70,7 @@ impl Problem {
|
|||
for (i, path) in self.path.iter().enumerate() {
|
||||
if i != without {
|
||||
for p in path {
|
||||
let weight = 0.5;
|
||||
let weight = 1.0;
|
||||
let x = p.0.x as usize;
|
||||
let y = p.0.y as usize;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue