docstr: Group betweenness centrality in a directed and weighted graph
docstr_tok: ["Group","betweenness","centrality","in","a","directed","and","weighted","graph"]
code: def test_group_betweenness_directed_weighted(self):
      """
      Group betweenness centrality in a directed and weighted graph
      """
      G = nx.DiGraph()
      G.add_edge(1, 0, weight=1)
      G.add_edge(0, 2, weight=2)
      G.add_edge(1, 2, weight=3)
      G.add_edge(3, 1, weight=4)
      G.add_edge(2, 3, weight=1)
      G.add_edge(4, 3, weight=6)
      G.add_edge(2, 4, weight=7)
      C = [1, 2]
      b = nx.group_betweenness_centrality(
          G, C, weight="weight", normalized=False
      )
      b_answer = 5.0
      assert b == b_answer
  
imports: import pytest
  import networkx
label_desc: Use image node_id 8 for calling the TestGroupBetweennessCentrality obj's underlying member method code with example usage: obj.test_group_betweenness_directed_weighted() without return types