problem with edge property display

I created a graph and edge property like this>

*import pandas as pd
import graph_tool as gt

df =

g = gt.Graph()

nprop = g.new_edge_property("float")


So after creating everything when I type the command


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) ??

Please read the documentation carefully. Graph.list_properties() only lists
the internal property maps, not all property maps created. If you want your
property map to show up, you need to do:

    g.edge_properties["nprop"] = nprop



Thank you.

Also, I figured out the other part of the previous query.