code: private void refreshWorkflow() {
          Graph graph = new Graph(((Workflow) workflows.getValue())
                  .getWorkflowName(), Graph.DIGRAPH);
          nodes.values().forEach(node -> {
              graph.addNode(node);
          });
          edges.values().forEach(edge -> {
              graph.addEdge(edge.getKey(), edge.getValue().getDest());
          });
          diagram.drawGraph(graph);
          selected = null;
          updateControls();
      }
docs: Recreate graph with the edited values