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();
    }
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
Recreate graph with the edited values