(self, network_hash: bytes)
| 824 | |
| 825 | #TODO: using one LRU cache here can cause the Network object to be leaked, need a way to speed this function w/o using global lru cache. |
| 826 | def _get_graph_impl(self, network_hash: bytes) -> "Network._GraphState": |
| 827 | graph = Network._GraphState() |
| 828 | graph.build(self) |
| 829 | return graph |
| 830 | |
| 831 | @dataclass |
| 832 | class _GraphState: |