create_largestcomponent_graph() in GraphUtil takes in a VertexWeightedGraph, but does not appear to need this strict of a requirement.