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

arccore.graph weighted edge traverse enhancement #4

Open
ChrisRus opened this issue Dec 20, 2021 · 0 comments
Open

arccore.graph weighted edge traverse enhancement #4

ChrisRus opened this issue Dec 20, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@ChrisRus
Copy link
Member

I just release v0.1.9 crescent with support for weigted edge BFT/DFT.

In hindsight I missed an rather obvious usability enhanancement.

Currently, to enable edge-weighted traversal you need to add getEdgeWeight and compareEdgeWeights callback function definitions to your visitor object.

But, in the vast majority of cases the developer-defined edge weight will a value of a type that is comparable via standard less-than and greater-than operators (e.g. string, numeric value).

So, we should allow developers to specify on getEdgeWeight to enable edge-weight traversal feature. And, allow compareEdgeWeight to be left unspecified in order to use default comparison operator provided by graph library (should be sufficient for 80% of use cases).

@ChrisRus ChrisRus added documentation Improvements or additions to documentation enhancement New feature or request labels Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant