only one edge in graph