Fix graph_connect/disconnect and add graph_is_connected