This module provide a set of concepts to add properties to graph elements
Bases: core.graph.interface.property_graph.IPropertyGraph, core.graph.graph.Graph
simple implementation of IPropertyGraph using dict as properties and two dictionaries to maintain these properties
add a new map between eid and a data do not fill this property for any edge
add a new map between vid and a data do not fill this property for any vertex
return a map between eid and data for all edges where property_name is defined
Return type: | dict of {eid:data} |
---|
iter on names of all property maps defined on edge return iter of keys
add the specified graph to self, create new vid and eid
Parameters: | graph (Graph) -- the graph to add |
---|---|
Returns: | two dictionnary specifying correspondence between graph id and self id |
Return type: | ({vid:vid},{eid:eid}) |
remove a specified edge from the graph
Parameters: | eid (eid) -- id of the edge to remove |
---|
remove a specified vertex of the graph remove all the edges attached to it
Parameters: | vid (vid) -- the id of the vertex to remove |
---|