docstr: Tests that the closeness vitality of a node whose removal
  disconnects the graph is negative infinity.
docstr_tok: ["Tests","that","the","closeness","vitality","of","a","node","whose","removal","disconnects","the","graph","is","negative","infinity","."]
code: def test_disconnecting_graph(self):
      """Tests that the closeness vitality of a node whose removal
      disconnects the graph is negative infinity.
  
      """
      G = nx.path_graph(3)
      assert nx.closeness_vitality(G, node=1) == -float("inf")
  
file_path: networkx/networkx/algorithms/tests/test_vitality.py
imports: import networkx
label_desc: Use image node_id 6 for calling the TestClosenessVitality obj's underlying member method code with example usage: obj.test_disconnecting_graph() without return types