Package org.gephi.statistics.plugin

Examples of org.gephi.statistics.plugin.ConnectedComponents


        public GiantComponentFilter() {
            attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel();
        }

        public boolean init(Graph graph) {
            ConnectedComponents cc = new ConnectedComponents();
            HierarchicalUndirectedGraph undirectedGraph = null;
            if (cc instanceof UndirectedGraph) {
                undirectedGraph = (HierarchicalUndirectedGraph) graph;
            } else {
                undirectedGraph = graph.getView().getGraphModel().getHierarchicalUndirectedGraph(graph.getView());
            }

            cc.weaklyConnected(undirectedGraph, attributeModel);
            componentId = cc.getGiantComponent();
            column = attributeModel.getNodeTable().getColumn(ConnectedComponents.WEAKLY);

            return column != null && componentId != -1;
        }
View Full Code Here


    public String getName() {
        return NbBundle.getMessage(ConnectedComponentsBuilder.class, "ConnectedComponents.name");
    }

    public Statistics getStatistics() {
        return new ConnectedComponents();
    }
View Full Code Here

        return NbBundle.getMessage(ConnectedComponentsBuilder.class, "ConnectedComponents.name");
    }

    @Override
    public Statistics getStatistics() {
        return new ConnectedComponents();
    }
View Full Code Here

        public GiantComponentFilter() {
        }

        public boolean init(Graph graph) {
            ConnectedComponents cc = new ConnectedComponents();
            HierarchicalUndirectedGraph undirectedGraph = null;
            if (cc instanceof UndirectedGraph) {
                undirectedGraph = (HierarchicalUndirectedGraph) graph;
            } else {
                undirectedGraph = graph.getView().getGraphModel().getHierarchicalUndirectedGraph(graph.getView());
            }

            attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel(graph.getGraphModel().getWorkspace());
            cc.weaklyConnected(undirectedGraph, attributeModel);
            componentId = cc.getGiantComponent();
            column = attributeModel.getNodeTable().getColumn(ConnectedComponents.WEAKLY);

            return column != null && componentId != -1;
        }
View Full Code Here

TOP

Related Classes of org.gephi.statistics.plugin.ConnectedComponents

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.