Update graph.js

v1.0 to v2.2