Edge class for the graph