title: Build networkx directed graph or flow chart from more than one column of pandas dataframe
body: <p>I have pandas dataframe which consist of 10 columns.</p>
  
  <ul>
  <li>each row consist a step performed by a user to online. there are total of 10 columns so all 10 step process</li>
  <li>lets say first activity is booking a flight ticket so steps are
  login website-->give src dest time-->select seats-->pay--review</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/LFAun.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LFAun.png" alt="enter image description here"></a></p>
  
  <p>so there are various permutations can happen at every step, I want to draw a directed graph out of all dataset.</p>
  
  <p>currently networkx supports only 2 columns in </p>
  
  <pre><code># libraries
  import pandas as pd
  import numpy as np
  import networkx as nx
  import matplotlib.pyplot as plt
  
  # Build your graph
  G=nx.from_pandas_dataframe(df, 'src', 'dest',create_using=nx.DiGraph())
  
  # Plot it
  nx.draw(G, with_labels=True)
  plt.show()
  </code></pre>
  
  <p>can someone tell me how to d it for more than two column directed graph</p>