There's a theorem from graph theory that sums this um very nicely, no need to do brute search methods...

::goes to track down his graph theory book::

darn can't find it. Something to do with...