Enabled the use of self-referential edges.

Still needs visual tweaks.