Validation-Manager-Web/src/main/java/net/sourceforge/javydreamercsw/validation/manager/web/workflow/WorkflowViewer.java
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();
    }
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();
    }
Recreate graph with the edited values