first pass at saving a graph with nodes / edges based on the parsed json. this breaks the buildTree method for now...