add Weighted Grap and prim