Fix max-path to represent total chord count instead of edge count
This commit is contained in:
parent
6245ce5e27
commit
c1ff66265d
|
|
@ -604,7 +604,7 @@ def main():
|
||||||
weights_config["max_path"] = args.max_path
|
weights_config["max_path"] = args.max_path
|
||||||
|
|
||||||
path_obj = path_finder.find_stochastic_path(
|
path_obj = path_finder.find_stochastic_path(
|
||||||
max_length=args.max_path, weights_config=weights_config
|
max_length=args.max_path - 1, weights_config=weights_config
|
||||||
)
|
)
|
||||||
print(f"Path length: {len(path_obj)}")
|
print(f"Path length: {len(path_obj)}")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue