def test_complete_graph_global_efficiency():
 for n in range(10):
  G = nx.complete_graph(5)
  assert_equal(nx.global_efficiency(G), 1)

def test_complete_graph_global_efficiency ( ) : for n in range ( 10 ) : G = nx . complete_graph ( 5 ) assert_equal ( nx . global_efficiency ( G ) , 1 )
tests that the average global efficiency of the complete graph is one .