Refactor, split general Graph and ModelGraph stuff.
Test graph edges.
Test and fix Graph top.