Refactor on Allocation Module

Create the graph of costs