PNNL-CIM-Tools / CIM-Graph

Python library for creating in-memory labeled property graphs for creating, parsing, and editing CIM power system models
https://cimantic-graphs.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11 stars 8 forks source link

Keep track of classes that have already been queried to avoid duplicate queries #45

Open AAndersn opened 11 months ago

AAndersn commented 11 months ago

Performance enhancement to keep track of which classes have already been queried through GraphModel.__parsed__ = list[class]

When running .get_all_edges(cim.ClassName), it should check if cim.ClassName is in parsed. If not, all queries should be executed, then cim.ClassName should be appended to list of parsed classes