Commit 08ebe246 authored by Tiago Peixoto's avatar Tiago Peixoto

Implement the Graph.own_property() method.

parent e710a285
......@@ -1133,6 +1133,10 @@ class Graph(object):
graph_properties = property(__get_graph_properties,
doc="Dictionary of internal graph properties. The keys are the property names.")
def own_property(self, prop):
"""'Own' property map 'prop', which may belong to another graph."""
return PropertyMap(prop._PropertyMap__map, self, prop.key_type())
def list_properties(self):
"""Print a list of all internal properties.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment