unconnected graph cheking tested