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

Function DiGraph_add_weighted_edge

cpp_easygraph/classes/directed_graph.cpp:463–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463py::object DiGraph_add_weighted_edge(DiGraph& self, py::object u_of_edge, py::object v_of_edge, weight_t weight) {
464 self.dirty_nodes = true;
465 self.dirty_adj = true;
466 py::dict edge_attr;
467 edge_attr["weight"] = weight;
468 DiGraph_add_one_edge(self, u_of_edge, v_of_edge, edge_attr);
469 return py::none();
470}
471
472py::object DiGraph_remove_edge(DiGraph& self, py::object u, py::object v) {
473 self.dirty_nodes = true;

Callers

nothing calls this directly

Calls 1

DiGraph_add_one_edgeFunction · 0.85

Tested by

no test coverage detected