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

Function Graph_add_node

cpp_easygraph/classes/graph.cpp:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80py::object Graph_add_node(py::args args, py::kwargs kwargs) {
81 Graph& self = args[0].cast<Graph&>();
82 self.dirty_nodes = true;
83 self.dirty_adj = true;
84 self.linkgraph_dirty = true;
85 py::object one_node_for_adding = args[1];
86 py::dict node_attr = kwargs;
87 _add_one_node(self, one_node_for_adding, node_attr);
88 return py::none();
89}
90
91py::object Graph_add_nodes(Graph& self, py::list nodes_for_adding, py::list nodes_attr) {
92 self.dirty_nodes = true;

Callers

nothing calls this directly

Calls 1

_add_one_nodeFunction · 0.85

Tested by

no test coverage detected