Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

method calc_path_multiple_sources_and_targets not found in PathCalculator #41

Closed
zhumingpassional opened this issue May 4, 2024 · 5 comments

Comments

@zhumingpassional
Copy link

I test the following , it raise error: let shortest_path = path_calculator.calc_path_multiple_sources_and_targets(&fast_graph, sources, targets); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in PathCalculator

// ... see above
// we want to either start at node 2 or 3 both of which carry a different initial weight
let sources = vec![(3, 5), (2, 7)];
// ... and go to either node 6 or 8 which also both carry a cost upon arrival
let targets = vec![(6, 2), (8, 10)];
// calculate the path with minimum cost that connects any of the sources with any of the targets while taking into
// account the initial weights of each source and node
let shortest_path = path_calculator.calc_path_multiple_sources_and_targets(&fast_graph, sources, targets);

@easbar
Copy link
Owner

easbar commented May 4, 2024

What exactly are you trying to do?

@zhumingpassional
Copy link
Author

Calculating paths between multiple sources and targets

the above code is copied from the homepage.

@easbar
Copy link
Owner

easbar commented May 4, 2024

Ok, I see. You are probably using the 0.2.0 release which does not include the changes that were made since then. I will prepare the 0.3.0 1.0.0 version then, which will include calc_path_multiple_sources_and_targets. In the meantime you can of course build the code yourself using the code from the master branch.

@easbar
Copy link
Owner

easbar commented May 4, 2024

I just released version 1.0.0 on crates.io, please let me know if this is working so we can close here.

@zhumingpassional
Copy link
Author

it works now. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants