Completed graph connection check alorithm - first take