Examples of Graph


Examples of com.mossle.bpm.graph.Graph

        HistoricActivityInstanceEntity historicActivityInstanceEntity = getHistoricActivityInstanceEntity(historyTaskId);

        logger.info("historic activity instance is : {}",
                historicActivityInstanceEntity.getId());

        Graph graph = new ActivitiHistoryGraphBuilder(
                historicTaskInstanceEntity.getProcessInstanceId()).build();

        Node node = graph.findById(historicActivityInstanceEntity.getId());

        if (!checkCouldRollback(node)) {
            logger.info("cannot rollback {}", taskId);

            return 2;
View Full Code Here

Examples of com.neptuny.xgrapher.gen.model.Graph

    } catch (JAXBException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    ObjectFactory factory=new ObjectFactory();
    Graph gra=factory.createGraph();
    List nodi=gra.getNode();
    List archi=gra.getEdge();
   
    //creo 1� nodo
    Node nodo1=factory.createNode();
    nodo1.setId("31457");
    nodo1.setName("CPU_UTIL");
View Full Code Here

Examples of com.ojn.gexf4j.core.Graph

  }
 
  @Override
  public Gexf buildGexf() {
    Gexf gexf = new GexfImpl();
    Graph g = gexf.getGraph();
   
    Node hello = g.createNode("0")
      .setLabel("Hello");
    Node world = g.createNode("1")
      .setLabel("World");
   
    hello.connectTo("0", world);
   
    return gexf;
View Full Code Here

Examples of com.sk89q.craftbook.bukkit.Metrics.Graph

        try {
            logDebugMessage("Initializing Metrics!", "startup");
            Metrics metrics = new Metrics(this);
            metrics.start();

            Graph languagesGraph = metrics.createGraph("Language");
            for (String language : languageManager.getLanguages()) {
                languagesGraph.addPlotter(new Plotter(language) {

                    @Override
                    public int getValue () {
                        return 1;
                    }
                });
            }
            languagesGraph.addPlotter(new Plotter("Total") {

                @Override
                public int getValue () {
                    return languageManager.getLanguages().size();
                }
            });

            Graph mechanicsGraph = metrics.createGraph("Enabled Mechanics");
            for(CraftBookMechanic mech : getMechanics()) {
                mechanicsGraph.addPlotter(new Plotter(mech.getClass().getSimpleName()) {
                    @Override
                    public int getValue () {
                        return 1;
                    }
                });
View Full Code Here

Examples of com.sun.corba.se.impl.orbutil.graph.Graph

        private Map dictionary ;

        public ClassDataImpl( Class cls )
        {
            this.cls = cls ;
            Graph gr = new GraphImpl() ;
            NodeImpl root = new NodeImpl( cls ) ;
            Set rootSet = getRootSet( cls, root, gr ) ;

            // At this point, rootSet contains those remote interfaces
            // that are not related by inheritance, and gr contains
View Full Code Here

Examples of com.sun.tools.internal.xjc.reader.gbind.Graph

        // so we don't give a damn about 'forcedProps'.
        // although, for a future note, it's conceivable to expand
        // the binding algorithm to cover this notion.

        Expression tree = ExpressionBuilder.createTree(p);
        Graph g = new Graph(tree);
        for (ConnectedComponent cc : g) {
            buildProperty(cc);
        }
    }
View Full Code Here

Examples of com.sun.tools.xjc.reader.gbind.Graph

        // so we don't give a damn about 'forcedProps'.
        // although, for a future note, it's conceivable to expand
        // the binding algorithm to cover this notion.

        Expression tree = ExpressionBuilder.createTree(p);
        Graph g = new Graph(tree);
        for (ConnectedComponent cc : g) {
            buildProperty(cc);
        }
    }
View Full Code Here

Examples of com.tinkerpop.blueprints.Graph

        List<String> feedNamesOwnedByUser = getFeedsOwnedByAUser(feedType);
        List<String> expected = Arrays.asList("impression-feed/2014-01-01T00:00Z", "clicks-feed/2014-01-01T00:00Z",
                "imp-click-join1/2014-01-01T00:00Z", "imp-click-join2/2014-01-01T00:00Z");
        Assert.assertTrue(feedNamesOwnedByUser.containsAll(expected));

        Graph graph = service.getGraph();

        Iterator<Vertex> vertices = graph.getVertices("name", "impression-feed/2014-01-01T00:00Z").iterator();
        Assert.assertTrue(vertices.hasNext());
        Vertex feedInstanceVertex = vertices.next();
        Assert.assertEquals(feedInstanceVertex.getProperty(RelationshipProperty.TYPE.getName()),
                RelationshipType.FEED_INSTANCE.getName());

        Object vertexId = feedInstanceVertex.getId();
        Vertex vertexById = graph.getVertex(vertexId);
        Assert.assertEquals(vertexById, feedInstanceVertex);

        // feeds classified as secure
        verifyFeedsClassifiedAsSecure(feedType,
                Arrays.asList("impression-feed/2014-01-01T00:00Z",
View Full Code Here

Examples of com.tinkerpop.blueprints.pgm.Graph

        this.supportsTransactions = false;
    }

    @Override
    public Graph getGraphInstance() {
        Graph graph = new GraphbaseGraph("localhost", "21818", "Graph");
        graph.clear();
        return graph;
    }
View Full Code Here

Examples of com.tinkerpop.gremlin.structure.Graph

                                      final SerializerProvider serializerProvider, final TypeSerializer typeSerializer) throws IOException {
            ser(graphSONGraph, jsonGenerator);
        }

        private void ser(final GraphSONGraph graphSONGraph, final JsonGenerator jsonGenerator) throws IOException {
            final Graph g = graphSONGraph.getGraphToSerialize();
            jsonGenerator.writeStartObject();

            if (g.features().graph().variables().supportsVariables())
                jsonGenerator.writeObjectField(GraphSONTokens.VARIABLES, new HashMap<>(g.variables().asMap()));

            jsonGenerator.writeArrayFieldStart(GraphSONTokens.VERTICES);
            if (normalize)
                g.V().order(Comparators.HELD_VERTEX_COMPARATOR).forEachRemaining(FunctionUtils.wrapConsumer(jsonGenerator::writeObject));
            else
                g.V().forEachRemaining(FunctionUtils.wrapConsumer(jsonGenerator::writeObject));
            jsonGenerator.writeEndArray();

            jsonGenerator.writeArrayFieldStart(GraphSONTokens.EDGES);
            if (normalize)
                g.E().order(Comparators.HELD_EDGE_COMPARATOR).forEachRemaining(FunctionUtils.wrapConsumer(jsonGenerator::writeObject));
            else
                g.E().forEachRemaining(FunctionUtils.wrapConsumer(jsonGenerator::writeObject));
            jsonGenerator.writeEndArray();

            jsonGenerator.writeEndObject();
        }
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.