Fixed an error in the connectors

the program returned incorrectly when a loop graph was provided. this is
now fixed.

i also made two additional test graphs.