4am commit. Connected graph implemented, about to do simulation updating.