title: Assign edge weights to a networkx graph using pandas dataframe
body: <p>I am contructing a networkx graph in python 3. I am using a pandas dataframe to supply the edges and nodes to the graph. Here is what I have done :</p>
  
  <pre><code>test = pd.read_csv("/home/Desktop/test_call1", delimiter = ';')
  
  g_test = nx.from_pandas_edgelist(test, 'number', 'contactNumber', edge_attr='callDuration')
  </code></pre>
  
  <p>What I want is that the "callDuration" column of the pandas dataframe act as the weight of the edges for the networkx graph and the thickness of the edges also change accordingly.</p>
  
  <p>I also want to get the 'n' maximum weighted edges.</p>