graph with edges