in reply to How to check for the connectivity using hash

Create a parser. Parse your input into whatever representation of the connectivity you need. Walk the representation. Profit.

Update: As before, the Graph module might be of use.

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re: How to check for the connectivity using hash