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

Function Graph_add_weighted_edge

cpp_easygraph/classes/graph.cpp:420–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420py::object Graph_add_weighted_edge(Graph& self, py::object u_of_edge, py::object v_of_edge, weight_t weight) {
421 self.dirty_nodes = true;
422 self.dirty_adj = true;
423 self.linkgraph_dirty = true;
424 py::dict edge_attr;
425 edge_attr["weight"] = weight;
426 _add_one_edge(self, u_of_edge, v_of_edge, edge_attr);
427 return py::none();
428}
429
430py::object Graph_remove_edge(Graph& self, py::object u, py::object v) {
431 self.dirty_nodes = true;

Callers

nothing calls this directly

Calls 1

_add_one_edgeFunction · 0.85

Tested by

no test coverage detected