Think about Loose Coupling | |
PerlMonks |
Re: Is this a valid approach to finding if a path through a set of points has completed?by tobyink (Canon) |
on Jul 16, 2018 at 08:39 UTC ( [id://1218542]=note: print w/replies, xml ) | Need Help?? |
So putting it in graph theory terms, you're looking for graphs where there exists a path that allows you to visit all the nodes and return to your starting point while only traversing each edge at most once? I'm not sure from your examples whether the edges are directed (i.e. only allowed to be followed in one particular direction). If I were trying to solve this problem, I'd start with Graph or Graph::Easy.
In Section
Seekers of Perl Wisdom
|
|