title: Create a directed weighted graph using python-igraph and mysql results
body: <p>I am using python-igraph and trying to generate a directed weighted graph from a MySQL query results. I run a query on a table in my dataset and I want to create the graph based on that. Basically my query will return the following:</p>
  
  <pre><code>A B Weight
  1 2 3
  2 4 5
  </code></pre>
  
  <p>Can anyone explain how it can be done using python-igraph? Is it possible at all?</p>