Package org.gephi.graph.api

Examples of org.gephi.graph.api.MixedGraph


        deleteUndirected=NbPreferences.forModule(ClearEdges.class).getBoolean(DELETE_UNDIRECTED_SAVED_PREFERENCES, true);
    }

    public void execute() {
        GraphElementsController gec=Lookup.getDefault().lookup(GraphElementsController.class);
        MixedGraph graph=Lookup.getDefault().lookup(GraphController.class).getModel().getMixedGraph();
        if(deleteDirected){
            gec.deleteEdges(graph.getDirectedEdges().toArray());
        }
        if(deleteUndirected){
            gec.deleteEdges(graph.getUndirectedEdges().toArray());
        }
    }
View Full Code Here


                    }
                    Progress.progress(progressTicket);
                    writer.append(EOL);
                }
            } else {
                MixedGraph mixedGraph = (MixedGraph) graph;
                Node[] nodes = graph.getNodes().toArray();
                for (Node n : graph.getNodes()) {
                    if (cancel) {
                        break;
                    }
                    writeMatrixNode(n, true);
                    for (int j = 0; j < nodes.length; j++) {
                        Node m = nodes[j];
                        Edge e = mixedGraph.getEdge(n, m);
                        e = e == null ? ((HierarchicalMixedGraph) mixedGraph).getMetaEdge(n, m) : e;
                        writeEdge(e, j < nodes.length - 1);
                    }
                    Progress.progress(progressTicket);
                    writer.append(EOL);
View Full Code Here

        deleteUndirected = NbPreferences.forModule(ClearEdges.class).getBoolean(DELETE_UNDIRECTED_SAVED_PREFERENCES, true);
    }

    public void execute() {
        GraphElementsController gec = Lookup.getDefault().lookup(GraphElementsController.class);
        MixedGraph graph = Lookup.getDefault().lookup(GraphController.class).getModel().getMixedGraph();
        if (deleteDirected) {
            gec.deleteEdges(graph.getDirectedEdges().toArray());
        }
        if (deleteUndirected) {
            gec.deleteEdges(graph.getUndirectedEdges().toArray());
        }
    }
View Full Code Here

TOP

Related Classes of org.gephi.graph.api.MixedGraph

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.