

def k23_like(self):
    G = nx.complete_bipartite_graph(2, 3)
    G.add_edge(0, 1)
    assert_almost_equal(sb(G), 0.769, places=3)
    G = nx.complete_bipartite_graph(2, 3)
    G.add_edge(2, 4)
    assert_almost_equal(sb(G), 0.829, places=3)
    G = nx.complete_bipartite_graph(2, 3)
    G.add_edge(2, 4)
    G.add_edge(3, 4)
    assert_almost_equal(sb(G), 0.731, places=3)
    G = nx.complete_bipartite_graph(2, 3)
    G.add_edge(0, 1)
    G.add_edge(2, 4)
    assert_almost_equal(sb(G), 0.692, places=3)
    G = nx.complete_bipartite_graph(2, 3)
    G.add_edge(2, 4)
    G.add_edge(3, 4)
    G.add_edge(0, 1)
    assert_almost_equal(sb(G), 0.645, places=3)
    G = nx.complete_bipartite_graph(2, 3)
    G.add_edge(2, 4)
    G.add_edge(3, 4)
    G.add_edge(2, 3)
    assert_almost_equal(sb(G), 0.645, places=3)
    G = nx.complete_bipartite_graph(2, 3)
    G.add_edge(2, 4)
    G.add_edge(3, 4)
    G.add_edge(2, 3)
    G.add_edge(0, 1)
    assert_almost_equal(sb(G), 0.597, places=3)

dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/bipartite/tests/test_spectral_bipartivity.py TestSpectralBipartivity.k23_like/original