solved unconnected graph issue