graph.js parse int