Test the remaining functions for weighted undirected graphs