Ported main Graph stuff, need graph-swing port