new representation of graph edges