-
Notifications
You must be signed in to change notification settings - Fork 62
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
map_vertex iterates same node multiple times #110
Comments
You're right. If we consider this a bug, this could be fixed by inserting a memo pattern such as
in the code of |
In the meantime, you can use such a workaround on your side, by applying the same memo pattern to the function you are passing to |
thanks |
CHANGES: - ❗ OCamlGraph now requires OCaml >= 4.08 - ❗ [Traverse]: fixed [Dfs.fold] and [Dfs.fold_component], which were not implementing a proper DFS - [Classic]: new functions [cycle] and [grid] - [Eulerian]: Eulerian paths (new module) - [Components]: strong articulation points (see functors [Connectivity] and [BiConnectivity]) (Timothy Bourke) - [Dominator]: non-trivial dominators (Timothy Bourke) - backtracking/ocamlgraph#31: fixed documentation of [map_vertex]: the supplied function must be injective - backtracking/ocamlgraph#110: ensure that map_vertex applies the function only once per vertex
CHANGES: - ❗ OCamlGraph now requires OCaml >= 4.08 - ❗ [Traverse]: fixed [Dfs.fold] and [Dfs.fold_component], which were not implementing a proper DFS - [Classic]: new functions [cycle] and [grid] - [Eulerian]: Eulerian paths (new module) - [Components]: strong articulation points (see functors [Connectivity] and [BiConnectivity]) (Timothy Bourke) - [Dominator]: non-trivial dominators (Timothy Bourke) - backtracking/ocamlgraph#31: fixed documentation of [map_vertex]: the supplied function must be injective - backtracking/ocamlgraph#110: ensure that map_vertex applies the function only once per vertex
I am using Persistent.Digraph.ConcreteLabeled for one my applications. map_vertex is visiting the nodes more than one time.
The text was updated successfully, but these errors were encountered: