| 3 | #include "../classes/linkgraph.h" |
| 4 | |
| 5 | py::object attr_to_dict(const node_attr_dict_factory& attr) { |
| 6 | py::dict attr_dict = py::dict(); |
| 7 | for (const auto& kv : attr) { |
| 8 | attr_dict[py::cast(kv.first)] = kv.second; |
| 9 | } |
| 10 | return attr_dict; |
| 11 | } |
| 12 | |
| 13 | std::string weight_to_string(py::object weight) { |
| 14 | py::object warn = py::module_::import("warnings").attr("warn"); |
no outgoing calls
no test coverage detected