weighted edge
graph class