adjacent edges in graph theory