http://www.perlmonks.org?node_id=997464


in reply to Re: Finding subgraphs induced by a set of given vertices.
in thread Finding subgraphs induced by a set of given vertices.

The code fails on this data Code
---------DATA-------------- b c a a c d d e b e f g g d f h i g
And the output is
component 2 = e d g f component 1 = c a b b c a
Which is wrong, because it should have been this
component 2 = e d g f e f g g d f component 1 = c a b b c a
Because with the vertices in component 2, we can have 4th & 5th row of DATA. Please help on this