It now takes a graph as an input and you parse all the new nodes into it