added import code, added endpoint to load the graph