Graph-Based Modeling and Decomposition of Energy Infrastructures