2d connected graph