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

Function DiGraph_add_node

cpp_easygraph/classes/directed_graph.cpp:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154py::object DiGraph_add_node(py::args args, py::kwargs kwargs) {
155 DiGraph& self = args[0].cast<DiGraph&>();
156 self.dirty_nodes = true;
157 self.dirty_adj = true;
158 py::object one_node_for_adding = args[1];
159 py::dict node_attr = kwargs;
160 DiGraph_add_one_node(self, one_node_for_adding, node_attr);
161 return py::none();
162}
163
164py::object DiGraph_add_nodes(DiGraph& self, py::list nodes_for_adding, py::list nodes_attr) {
165 self.dirty_nodes = true;

Callers

nothing calls this directly

Calls 1

DiGraph_add_one_nodeFunction · 0.85

Tested by

no test coverage detected