Optimal Temporal Planning Using The Plangraph Framework