Make the connected logic a bit cleaner.
Switch to a one-liner for connected boolean.
Merge pull request #117 from csmith/master

Make the connected logic a bit cleaner.