added printing of edges and edge labels