Determine if graph is connected (#702)