title: plot bipartite graph created with Networkx using igraph
body: <p>I have trouble reading my bipartite matrix in igraph. I created bipartite graphs using Networkx and exported them as a biadjacency matrix:</p>
  
  <pre><code>   bipartite.biadjacency_matrix(Graph[i],row_order=bipartite.sets(stockGraph[i])[0], column_order=bipartite.sets(stockGraph[i])[1],format='csr') 
  </code></pre>
  
  <p>Then I import the 10x10 matrix in R using igraph :</p>
  
  <pre><code>  data &lt;-readMat("graphToMatlab1.mat")
    data1 &lt;- data$graphToMatlab[[1]][[1]]
    graph &lt;- graph_from_adjacency_matrix(data1, mode="undirected")
  </code></pre>
  
  <p>Here is the sparse matrix: </p>
  
  <blockquote>
    <p>data1
        10 x 10 sparse Matrix of class "dgCMatrix"</p>
  </blockquote>
  
  <pre><code> [1,] 1 . . . . . . . . .
   [2,] . . . . 1 . . . . .
   [3,] . . 1 . . 1 . . . .
   [4,] . . . . 1 . 1 1 . .
   [5,] . . . . . . . . . 1
   [6,] . . 1 1 . . 1 . 1 .
   [7,] . . 1 1 1 2 . . . .
   [8,] . . 1 . . 1 . . . .
   [9,] . . 1 1 . . . 1 . .
   [10,] . 2 . . . . . . . .
  </code></pre>
  
  <blockquote>
    <p>graph</p>
  </blockquote>
  
  <pre><code>IGRAPH U--- 10 21 -- 
  + edges:
  [1] 1-- 1 2-- 5 2--10 2--10 3-- 3 3-- 6 3-- 7 3-- 8 3-- 9 4-- 5 4-- 6  4-- 7 4-- 8 4-- 9 5-- 7 5--10 6-- 7 6-- 7 6-- 8 6-- 9
  [21] 8-- 9
  </code></pre>
  
  <p>So this is wrong because it does not take into account that there are two types of vertices (missing the attributes section). So I think this is because of the way I exported the graph (using bipartite.biadjacency matrix), but is there a way to bypass this problem? Either in the way igraph reads matrices or how I export in Networkx ?</p>