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.
In reply to Re: How to check for the connectivity using hash
by Fletch
in thread How to check for the connectivity using hash
by prk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |