Examples of Graph


Examples of org.gephi.graph.api.Graph

    }

    public GraphView filter(Query query) {
        FilterProcessor processor = new FilterProcessor();
        GraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();
        Graph result = processor.process((AbstractQueryImpl) query, graphModel);
        return result.getView();
    }
View Full Code Here

Examples of org.gephi.graph.api.Graph

            if (graphModel != null) {
                graph = graphModel.getHierarchicalGraphVisible();
            }
        }
        //Refresh reader if sight changed
        Graph g = graph;
        if (g != null) {
            if (g.getGraphModel().getVisibleView().getViewId() != graphView) {
                reset();
            }
            return g.getNodeVersion() > nodeVersion || g.getEdgeVersion() > edgeVersion;
        }
        return false;
    }
View Full Code Here

Examples of org.gephi.graph.api.Graph

        getGraph().addNode(newNode);
        return newNode;
    }

    public Node createNode(String label, String id) {
        Graph graph = getGraph();
        if (graph.getNode(id) == null) {
            Node newNode = buildNode(label, id);
            graph.addNode(newNode);
            return newNode;
        } else {
            return null;
        }
    }
View Full Code Here

Examples of org.gephi.preview.api.Graph

    public boolean execute() {
        // fetches the preview graph sheet
        PreviewController controller = Lookup.getDefault().lookup(PreviewController.class);
        GraphSheet graphSheet = controller.getGraphSheet();
        Graph graph = graphSheet.getGraph();
        try {
            exportData(graph);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
View Full Code Here

Examples of org.graphstream.graph.Graph

    basicPanel.setLayout(new BoxLayout(basicPanel, BoxLayout.Y_AXIS));
   
    //result-panel
    JPanel resultPanel = createResultPanel();
    //graphstream-panel
    Graph g = new MultiGraph("g");
    g.addAttribute("ui.quality");
    g.addAttribute("ui.antialias");
    g.addAttribute("ui.stylesheet", styleSheet);

    JPanel graphStreamPanel = new JPanel();
    graphStreamPanel.setPreferredSize(new Dimension((int)(800*scaling),(int)(460*scaling)));
    graphStreamPanel.setBackground(Color.WHITE);
   
 
View Full Code Here

Examples of org.jboss.dna.graph.Graph

        assertThat(configReposSource, is(notNullValue()));
        assertThat(configReposSource, is(instanceOf(InMemoryRepositorySource.class)));
        assertThat(configReposSource.getName(), is(JcrConfiguration.DEFAULT_CONFIGURATION_SOURCE_NAME));
        InMemoryRepositorySource configSource = (InMemoryRepositorySource)configReposSource;
        assertThat(configSource.getDefaultWorkspaceName(), is(JcrConfiguration.DEFAULT_WORKSPACE_NAME));
        Graph graph = engine.getGraph(JcrConfiguration.DEFAULT_CONFIGURATION_SOURCE_NAME);
        assertThat(graph, is(notNullValue()));
        assertThat(graph.getNodeAt("/"), is(notNullValue()));
        assertThat(graph.getNodeAt("/dna:sources"), is(notNullValue()));
        assertThat(graph.getNodeAt("/dna:sources/Source2"), hasProperty(DnaLexicon.DESCRIPTION, "description"));
        assertThat(graph.getNodeAt("/dna:repositories/JCR Repository"), hasProperty(DnaLexicon.SOURCE_NAME, "Source2"));

        // Get the repository ...
        JcrRepository repository = engine.getRepository("JCR Repository");
        assertThat(repository, is(notNullValue()));
    }
View Full Code Here

Examples of org.jboss.util.graph.Graph

/*  90 */     return map;
/*     */   }
/*     */
/*     */   protected void buildGraph(Map<String, String> properties)
/*     */   {
/* 100 */     this.graph = new Graph();
/* 101 */     this.root = this.vertexFactory.rootVertex();
/* 102 */     this.graph.setRootVertex(this.root);
/* 103 */     for (String key : properties.keySet())
/*     */     {
/* 105 */       String value = (String)properties.get(key);
View Full Code Here

Examples of org.jrdf.graph.Graph

        return application.getGraphsDir();
    }

    private void refreshGraphsModel() {
        final File file = new File(handler.getDir(), graphsFile);
        final Graph modelsGraph = new RdfReader().parseNTriples(file);
        final Models model = new ModelsImpl(modelsGraph);
        this.resources = model.getResources();
    }
View Full Code Here

Examples of org.kohsuke.graphviz.Graph

    protected Boolean appendToSubgraph(Map<String, Graph> subgraphs, Node node, P2jLogicalRelationalOperator oper) {
        String jid = null;
        if (oper.getMapReduce() != null && oper.getMapReduce().getJobId() != null) {
            jid = oper.getMapReduce().getJobId();
            if (!subgraphs.containsKey(jid)) {
                Graph g = new Graph();
                g.id("cluster_" + jid.replaceAll("-", ""));
                g.attr("bgcolor", BG_CLUSTER);
                Style s = new Style();
                s.attr("rounded");
                s.attr("filled");
                g.style(s);
                subgraphs.put(jid, g);
            }
            subgraphs.get(jid).node(node);
            return false;
        }
View Full Code Here

Examples of org.mantikhor.llapi.Graph

     */
    public void testGetSubgraph()
    {
        assertNotNull(this.treeI);
        ResourceNode nodeA = (ResourceNode)getNode(TreeImplTest.NODES.A);
        Graph graph1 = this.treeI.getSubgraph(nodeA);
        assertNotNull(graph1);
        TreeImpl tree1 = TreeImpl.valueByResourceNode((ResourceNode)graph1.getNamenode());
        GraphInformation graphInformation1 = tree1.getGraphInformation();
        assertTrue(graphInformation1.getBaseProperties().size() == 3);
        assertTrue(graphInformation1.getBaseValNodes().size() == 4);
        assertTrue(graphInformation1.getPropertyDefinitions().size() == 3);
        assertTrue(graphInformation1.getPropertiesThatAreKhoronItems().size() == 3);
        assertTrue(graphInformation1.getTerminatingBaseProperties().size() == 3);
        assertTrue(graphInformation1.getValNodesThatAreBursts().size() == 4);
       
        ResourceNode nodeF = (ResourceNode)getNode(TreeImplTest.NODES.F);
        Graph graph2 = this.treeI.getSubgraph(nodeF);
        assertNotNull(graph2);
       
        TreeImpl treeIsubgraphFromF = TreeImpl.valueByResourceNode((ResourceNode)graph2.getNamenode());
        GraphInformation graphInformation2 = treeIsubgraphFromF.getGraphInformation();
        assertTrue(graphInformation2.getBaseProperties().size() == 0);
        assertTrue(graphInformation2.getBaseValNodes().size() == 1);
        assertTrue(graphInformation2.getPropertyDefinitions().size() == 0);
        assertTrue(graphInformation2.getPropertiesThatAreKhoronItems().size() == 0);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.