MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / DiGraph_add_edge

Function DiGraph_add_edge

cpp_easygraph/classes/directed_graph.cpp:302–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302py::object DiGraph_add_edge(py::args args, py::kwargs kwargs) {
303 DiGraph& self = args[0].cast<DiGraph&>();
304 self.dirty_nodes = true;
305 self.dirty_adj = true;
306 py::object u_of_edge = args[1], v_of_edge = args[2];
307 py::dict edge_attr = kwargs;
308 DiGraph_add_one_edge(self, u_of_edge, v_of_edge, edge_attr);
309 return py::none();
310}
311
312py::object DiGraph_add_edges(DiGraph& self, py::list edges_for_adding, py::list edges_attr) {
313 self.dirty_nodes = true;

Callers

nothing calls this directly

Calls 1

DiGraph_add_one_edgeFunction · 0.85

Tested by

no test coverage detected