A Graph-Based Approach for Modeling, Simulation, and Optimization of Life Cycle Resource Flows