Code outputs only what's required, graph cost still broken