I created a graph and edge property like this>

*import pandas as pd
import graph_tool as gt

df =
pd.DataFrame({'Node1':['a','b','c'],'Node2':['b','c','a'],'weight':[0.4,0.5,0.8]})

g = gt.Graph()

nprop = g.new_edge_property("float")

g.add_edge_list(df.values.tolist(),hashed=True,string_vals=True,eprops=[nprop])*



So after creating everything when I type the command


*g.list_properties()*


it doesn't show anything at all. Why so ??


Also, is there any way to print the weight values ( or any other property
values associated with edges and vertices)  ??







--
Sent from: 
http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to