This module provide a set of concepts to add properties to graph elements
-
exception core.graph.interface.property_graph.PropertyError[source]
Bases: exceptions.Exception
todo
-
class core.graph.interface.property_graph.IPropertyGraph[source]
Bases: object
Directed graph with properties associated with edges and vertices
Properties may not be defined on all elements
Properties may be empty on some elements
A property is a map between an element id (vid or eid) and a data
-
add_edge_property(property_name)[source]
add a new map between eid and a data
do not fill this property for any edge
-
add_vertex_property(property_name)[source]
add a new map between vid and a data
do not fill this property for any vertex
-
edge_property(property_name)[source]
return a map between eid and data for all edges where
property_name is defined
Return type: | dict of {eid:data} |
-
edge_property_names()[source]
iter on names of all property maps defined on edge
return iter of keys
-
remove_edge_property(property_name)[source]
remove the map called property_name from the graph
-
remove_vertex_property(property_name)[source]
remove the map called property_name from the graph
-
vertex_property(property_name)[source]
return a map between vid and data for all vertices where
property_name is defined
Return type: | dict of {vid:data} |
-
vertex_property_names()[source]
iter on names of all property maps defined on vertices
return iter of keys