Make a weighted analyzer require a weighted graph.