title: Representing Graph with Numpy Array
body: <p>I am receiving data in the following format:</p>
  
  <pre><code>tail head
  P01106  Q09472
  P01106  Q13309
  P62136  Q13616
  P11831  P18146
  P13569  P20823
  P20823  P01100
  ...
  </code></pre>
  
  <p>Is there a good way to format this data as a graph with a numpy array? I am hoping to compute PageRank using this graph.</p>
  
  <p>So far I have</p>
  
  <pre><code>import numpy as np
  data = np.genfromtxt('wnt_edges.txt', skip_header=1, dtype=str)
  </code></pre>
  
  <p>I was thinking about using the graph data structure from <a href="https://stackoverflow.com/questions/19472530/representing-graphs-data-structure-in-python">Representing graphs (data structure) in Python</a> but it didn't seem to make sense in this case since I'll be doing matrix multiplication.</p>