weighted graph added