move the multiplication to the UndirectedGraph in Graph.