main.js-for graph read