Moved graph functions to graph.js
Add nodes that are not part of workflow definition.