convert bipartite graph to adjacency matrix python
<p>I'm trying to convert edge list which is in the following format</p>

<pre><code>data = [('a', 'developer'),
         ('b', 'tester'),
        ('b', 'developer'),
         ('c','developer'),
         ('c', 'architect')]
</code></pre>

<p>where the adjacency matrix will be in the form of</p>

<pre><code>      developer     tester    architect
a        1            0          0
b        1            1          0
c        1            0          1
</code></pre>

<p>I want to store the matrix in the following format</p>

<pre><code> 1    0    0
 1    1    0
 1    0    1
</code></pre>

<p>Any help is highly appreciated</p>