Algorithms-implementation Effecient algorithm to compute total cost and density of a designed graph using java programming with user provided network parameters