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

Unexpected behaviour componentTraverser() #57

Closed
zartstrom opened this Issue Mar 16, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@zartstrom

zartstrom commented Mar 16, 2016

I'm confused by some behavior of the componentTraverser method:

scala> val ns = List(11, 12, 13, 14)
scala> val es = List(11~>12, 13~>14)
scala> val g = Graph.from(ns, es)
scala> for { c <- g.componentTraverser() } yield { c.nodes }
res12: Traversable[Set[g2.NodeT]] = List(Set(12), Set(13, 14), Set(11, 12))

Why is there the Set(12)? Or why is there no Set(14) then?

@peter-empen peter-empen added the bug label Mar 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment