Fix a bug in SubTopo

It did not correctly limit the count of incoming edges to those only in
the subgraph. This was discovered by the existing quickcheck test
failing (so it was pretty rare).

Fix it by introducing another visitor map ("discovered") to map out
which nodes participate in the subgraph.
1 file changed