(#36) Make automatic layout work with simple edges.