title: Convert a rectangular binary matrix to a graph?
body: <p>I know for the fact that square binary matrix can be converted to a graph.  For example using gplot in matlab matrix below can be converted to the graph</p>
  
  <pre><code>0 1 1 
  1 0 0
  0 1 0
  </code></pre>
  
  <p>can be represented by a graph  </p>
  
  <pre><code>A-&gt;B, A-&gt;C, B-&gt;A,C-&gt;B
  </code></pre>
  
  <p>But I wonder if there is a way to convert a rectangular matrix like</p>
  
  <pre><code>0 1
  1 0
  0 1
  </code></pre>
  
  <p>to a graph someway in matlab or any other language? </p>
  
  <p>Also my rows and columns are different variables.</p>