| 630 | } |
| 631 | |
| 632 | py::object Graph::get_nodes() { |
| 633 | if (this->dirty_nodes) { |
| 634 | py::dict nodes = py::dict(); |
| 635 | for (const auto& node_info : node) { |
| 636 | node_t id = node_info.first; |
| 637 | const auto& node_attr = node_info.second; |
| 638 | nodes[this->id_to_node[py::cast(id)]] = attr_to_dict(node_attr); |
| 639 | } |
| 640 | this->nodes_cache = nodes; |
| 641 | this->dirty_nodes = false; |
| 642 | } |
| 643 | return this->nodes_cache; |
| 644 | } |
| 645 | |
| 646 | py::object Graph::get_name() { |
| 647 | return this->graph.attr("get")("name", ""); |
nothing calls this directly
no test coverage detected