@attr('numpy')
    def test_biadjacency_matrix(self):
        try:
            import numpy
        except __HOLE__:
            raise SkipTest('numpy not available.')
        tops = [2,5,10]
        bots = [5,10,15]
        for i in range(len(tops)):
            G = nx.bipartite_random_graph(tops[i], bots[i], 0.2)
            top = [n for n,d in G.nodes(data=True) if d['bipartite']==0]
            M = bipartite.biadjacency_matrix(G, top)
            assert_equal(M.shape[0],tops[i])
            assert_equal(M.shape[1],bots[i])
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/bipartite/tests/test_basic.py/TestBipartiteBasic.test_biadjacency_matrix