Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
08ebe246
Commit
08ebe246
authored
Jan 06, 2012
by
Tiago Peixoto
Browse files
Implement the Graph.own_property() method.
parent
e710a285
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/__init__.py
View file @
08ebe246
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment