Add support for undirected Graphs to layout

Fixes #83