magoavi
11/25/2017 - 10:22 PM

loading_data_for_creating_a_direcetd_graph

Creating a directed graph using datafile

#define data
data = r'datafilepath'

#Creating a directed graoh
G = nx.read_edgelist(data, nodetype = str, create_using = nx.Digraph(), \
data = (('weight',float),))