Jsgraph

I think we should continue to work on this branch at least until the testcases work like in the release