docstr: Betweenness Centrality Subset: Diamond Multi Path
docstr_tok: ["Betweenness","Centrality","Subset",":","Diamond","Multi","Path"]
code: def test_diamond_multi_path(self):
      """Betweenness Centrality Subset: Diamond Multi Path"""
      G = nx.Graph()
      G.add_edges_from(
          [
              (1, 2),
              (1, 3),
              (1, 4),
              (1, 5),
              (1, 10),
              (10, 11),
              (11, 12),
              (12, 9),
              (2, 6),
              (3, 6),
              (4, 6),
              (5, 7),
              (7, 8),
              (6, 8),
              (8, 9),
          ]
      )
      b = nx.betweenness_centrality_subset(
          G, sources=[1], targets=[9], weight=None
      )
  
      expected_b = {
          1: 0,
          2: 1.0 / 10,
          3: 1.0 / 10,
          4: 1.0 / 10,
          5: 1.0 / 10,
          6: 3.0 / 10,
          7: 1.0 / 10,
          8: 4.0 / 10,
          9: 0,
          10: 1.0 / 10,
          11: 1.0 / 10,
          12: 1.0 / 10,
      }
  
      for n in sorted(G):
          assert b[n] == pytest.approx(expected_b[n], abs=1e-7)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 8 for calling the TestSubsetBetweennessCentrality obj's underlying member method code with example usage: obj.test_diamond_multi_path() without return types