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

Function Graph_add_edge

cpp_easygraph/classes/graph.cpp:254–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254py::object Graph_add_edge(py::args args, py::kwargs kwargs) {
255 Graph& self = args[0].cast<Graph&>();
256 self.dirty_nodes = true;
257 self.dirty_adj = true;
258 self.linkgraph_dirty = true;
259 py::object u_of_edge = args[1], v_of_edge = args[2];
260 py::dict edge_attr = kwargs;
261 _add_one_edge(self, u_of_edge, v_of_edge, edge_attr);
262 return py::none();
263}
264
265py::object Graph_add_edges(Graph& self, py::list edges_for_adding, py::list edges_attr) {
266 self.dirty_nodes = true;

Callers

nothing calls this directly

Calls 1

_add_one_edgeFunction · 0.85

Tested by

no test coverage detected