adding cost graph functionality