class_docstr: Unit tests for computing measures of structural holes.
  
  The expected values for these functions were originally computed using the
  proprietary software `UCINET`_ and the free software `IGraph`_ , and then
  computed by hand to make sure that the results are correct.
  
  .. _UCINET: https://sites.google.com/site/ucinetsoftware/home
  .. _IGraph: http://igraph.org/
class_docstr_tok: ["Unit","tests","for","computing","measures","of","structural","holes",".","The","expected","values","for","these","functions","were","originally","computed","using","the","proprietary","software","`","UCINET","`","_","and","the","free","software","`","IGraph","`","_",",","and","then","computed","by","hand","to","make","sure","that","the","results","are","correct",".","..","_UCINET",":","https",":","\/\/sites.google.com\/site\/ucinetsoftware\/home","..","_IGraph",":","http",":","\/\/igraph.org\/"]
code: def test_effective_size_weighted_undirected(self):
      G = self.G.copy()
      nx.set_edge_attributes(G, self.G_weights, "weight")
      effective_size = nx.effective_size(G, weight="weight")
      assert effective_size["G"] == pytest.approx(5.47, abs=1e-2)
      assert effective_size["A"] == pytest.approx(2.47, abs=1e-2)
      assert effective_size["C"] == pytest.approx(1, abs=1e-2)
  
file_path: networkx/networkx/algorithms/tests/test_structuralholes.py
imports: import math
  import pytest
  import networkx
  from networkx.classes.tests import dispatch_interface
label_desc: Use image node_id 10 for calling the TestStructuralHoles obj's underlying member method code with example usage: obj.test_effective_size_weighted_undirected() without return types