code: def test_contract_scc_isolate(self):
      # Bug found and fixed in [1687].
      G = nx.DiGraph()
      G.add_edge(1, 2)
      G.add_edge(2, 1)
      scc = list(nx.strongly_connected_components(G))
      cG = nx.condensation(G, scc)
      assert list(cG.nodes()) == [0]
      assert list(cG.edges()) == []
  
file_path: networkx/networkx/algorithms/components/tests/test_strongly_connected.py
imports: import pytest
  import networkx
  from networkx import NetworkXNotImplemented
label_desc: Use image node_id 8 for calling the TestStronglyConnected obj's underlying member method code with example usage: obj.test_contract_scc_isolate() without return types