class_docstr: Unit tests for the has bridges function.
code: def test_bridges_multiple_components(self):
      G = nx.Graph()
      nx.add_path(G, [0, 1, 2])  # One connected component
      nx.add_path(G, [4, 5, 6])  # Another connected component
      assert list(nx.bridges(G, root=4)) == [(4, 5), (5, 6)]
  
file_path: networkx/networkx/algorithms/tests/test_bridges.py
imports: import pytest
  import networkx
label_desc: Use image node_id 4 for calling the TestHasBridges obj's underlying member method code with example usage: obj.test_bridges_multiple_components() without return types