docstr: Betweenness centrality: disconnected path endpoints
docstr_tok: ["Betweenness","centrality",":","disconnected","path","endpoints"]
code: def test_disconnected_path_endpoints(self):
      """Betweenness centrality: disconnected path endpoints"""
      G = nx.Graph()
      nx.add_path(G, [0, 1, 2])
      nx.add_path(G, [3, 4, 5, 6])
      b_answer = {0: 2, 1: 3, 2: 2, 3: 3, 4: 5, 5: 5, 6: 3}
      b = nx.betweenness_centrality(
          G, weight=None, normalized=False, endpoints=True
      )
      for n in sorted(G):
          assert b[n] == pytest.approx(b_answer[n], abs=1e-7)
      # normalized = True case
      b = nx.betweenness_centrality(
          G, weight=None, normalized=True, endpoints=True
      )
      for n in sorted(G):
          assert b[n] == pytest.approx(b_answer[n] / 21, abs=1e-7)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 13 for calling the TestBetweennessCentrality obj's underlying member method code with example usage: obj.test_disconnected_path_endpoints() without return types