Added implementation of a network graph + cost analysis