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

Function Graph_ego_subgraph

cpp_easygraph/classes/graph.cpp:575–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575py::object Graph_ego_subgraph(py::object self, py::object center) {
576 py::list neighbors_of_center = py::list(self.attr("all_neighbors")(center));
577 neighbors_of_center.append(center);
578 return self.attr("nodes_subgraph")(neighbors_of_center);
579}
580
581py::object Graph_size(py::object self, py::object weight) {
582 py::dict degree = self.attr("degree")(weight).cast<py::dict>();

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected