R: better printing of graphs and edges, #742

Use the printr package.
R: better printing #742