class_docstr: Unit tests for the bridge-finding function.
code: def test_single_bridge(self):
      edges = [
          # DFS tree edges.
          (1, 2),
          (2, 3),
          (3, 4),
          (3, 5),
          (5, 6),
          (6, 7),
          (7, 8),
          (5, 9),
          (9, 10),
          # Nontree edges.
          (1, 3),
          (1, 4),
          (2, 5),
          (5, 10),
          (6, 8),
      ]
      G = nx.Graph(edges)
      source = 1
      bridges = list(nx.bridges(G, source))
      assert bridges == [(5, 6)]
  
file_path: networkx/networkx/algorithms/tests/test_bridges.py
imports: import pytest
  import networkx
label_desc: Use image node_id 1 for calling the TestBridges obj's underlying member method code with example usage: obj.test_single_bridge() without return types