specify weights on vertices and edges