Graph creating and modifying routines¶
-
Graph.set_graph_name(str name)¶ Assign (change) graph name
Parameters: name ( str) – the name of the graph, it may not exceed 255 bytes encoded as UTF-8
-
Graph.add_vertices(int vertices)¶ Add new vertices to graph
-
Graph.add_named_vertices(*names)¶ Add new vertices to graph
Parameters: names ( tupleofstr) – the names of the vertices to add, none may exceed 255 bytes encoded as UTF-8
-
Graph.set_vertex_name(vertex, str name)¶ Assign (change) vertex name
Parameters: name ( str) – the name of the vertex, it may not exceed 255 bytes encoded as UTF-8
-
Graph.add_arc(tail, head)¶ Add new arc to graph
-
Graph.del_vertices(*vertices)¶ Delete vertices from graph
-
Graph.del_arc(Arc arc)¶ Delete arc from graph
-
Graph.erase_graph(int vertex_data_size, int arc_data_size)¶ Erase graph content