cellcomplex.graph.interface.property_graph module¶
This module provide a set of concepts to add properties to graph elements
-
class
cellcomplex.graph.interface.property_graph.IPropertyGraph[source]¶ Bases:
objectDirected 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
-
graph_property()[source]¶ return a dict containing the graph properties/
- Return type
dict of
{property_name:data}
-