Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

missing edgecolormap in BFS traversal #331

Closed
CarloLucibello opened this issue Apr 11, 2016 · 6 comments
Closed

missing edgecolormap in BFS traversal #331

CarloLucibello opened this issue Apr 11, 2016 · 6 comments

Comments

@CarloLucibello
Copy link
Contributor

while it is present in DFS.

Maybe there is a way, to maximize efficiency, to choose if edge discovery has to be considered or not

@jpfairbanks
Copy link
Contributor

Do you have more details?

@CarloLucibello
Copy link
Contributor Author

on this?

Maybe there is a way, to maximize efficiency, to choose if edge discovery has to be considered or not

no! just whishfull thinking :)

@sbromberger
Copy link
Owner

I don't think this is correct. We have calls to open_vertex, discover_vertex!, and examine_neighbor in the BFS code. Am I misunderstanding your issue?

@CarloLucibello
Copy link
Contributor Author

@sbromberger you are right, actually I misundertstood the issue. Actually what is missing in BFS with respect to DFS is an edgecolormap, whose elements should be passed to examine_neighbor. At the moment examine_neighbor in BFS always takes a -1 dummy argument.

This could be fixed easily, I'll do it along the other changes in #332

@jpfairbanks For traversals not needing an edgecolormap maybe one could define a dummy dict-like type for edgecolormap that doesn't allocate memory and doesn't perform any computation...

@CarloLucibello CarloLucibello changed the title missing edge examine/discovery in BFS traversal missing edgecolormap in BFS traversal Apr 11, 2016
@sbromberger
Copy link
Owner

can we close this with the merge of #332?

@CarloLucibello
Copy link
Contributor Author

Yep

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

No branches or pull requests

3 participants