Examples of addEdge()


Examples of com.tinkerpop.blueprints.util.wrappers.batch.BatchGraph.addEdge()

            blueprintsIdOut = faunusToBlueprintsId.get(faunusIdOut);
            vertexIn = graph.getVertex(blueprintsIdIn);
            vertexOut = graph.getVertex(blueprintsIdOut);

            // save the edge to the graph
            graph.addEdge(null, vertexIn, vertexOut, fe.getLabel());
        }
      }

      // commit changes to the graph
      graph.commit();
View Full Code Here

Examples of com.tinkerpop.gremlin.structure.Vertex.addEdge()

        marko.addEdge("knows", vadas, T.id, 7, "weight", 0.5f);
        marko.addEdge("knows", josh, T.id, 8, "weight", 1.0f);
        marko.addEdge("created", lop, T.id, 9, "weight", 0.4f);
        josh.addEdge("created", ripple, T.id, 10, "weight", 1.0f);
        josh.addEdge("created", lop, T.id, 11, "weight", 0.4f);
        peter.addEdge("created", lop, T.id, 12, "weight", 0.2f);
    }

    public static TinkerGraph createModern() {
        final TinkerGraph g = TinkerGraph.open();
        generateModern(g);
View Full Code Here

Examples of com.volantis.mcs.utilities.TopologicalSorter.addEdge()

               
                if (producer == null) {
                    throw new IllegalStateException("Unspecified widget ID: " + consumedId);
                }
               
                sorter.addEdge(consumer, producer);
            }
        }
       
        // Sort the graph topologically.
        List orderedContainers;
View Full Code Here

Examples of cu.repsystestbed.graphs.ReputationGraph.addEdge()

        if(!repGraph.containsVertex(sink))
        {
          repGraph.addVertex(sink);
        }
       
        repGraph.addEdge(src, sink);
        ReputationEdge repEdge = (ReputationEdge) repGraph.getEdge(src, sink);
        repEdge.setReputation(reputation);
        System.out.println(repGraph);
      }
     
View Full Code Here

Examples of cu.repsystestbed.graphs.TrustGraph.addEdge()

        if(!trustGraph.containsVertex(sink))
        {
          trustGraph.addVertex(sink);
        }
       
        trustGraph.addEdge(src, sink);
       
      }

    } catch (Exception e)
    {
View Full Code Here

Examples of de.hpi.bpt.graph.DirectedGraph.addEdge()

   
    for(String key:idMap.keySet()){
      for(String subkey:idMap.get(key).keySet()){
        ArcModel arc = arcMap.get(subkey);
        if(arc == null) continue;
        g.addEdge(idToVertex.get(arc.getSourceId()), idToVertex.get(arc.getTargetId()));
      }
    }
   
    rpst = new RPST<DirectedEdge,Vertex>(g);
   
View Full Code Here

Examples of de.hpi.eworld.exporter.sumo.data.SumoRoute.addEdge()

          "The route doesnt contain enough waypoints. Please add at least two waypoints to the current route.");
      return;
    }
    SumoRoute result = new SumoRoute(routeId.text());
    for(Edge e : selectedEdges)
      result.addEdge(e.getInternalID());
    signalFinished.emit(result);
    parentWidget().setVisible(true);
    this.close();
  }
 
View Full Code Here

Examples of de.hpi.eworld.model.db.data.event.CircleLocationModel.addEdge()

    cl.setCenter(new GlobalPosition(3.0, 4.0));
    cl.setRadius(2.0);
    cl.setCirclePoint(new GlobalPosition(3.0, 2.0));
    List<EdgeModel> underlyingEdges = calculateUnderlyingEdges(3.0, 4.0, 2.0, Arrays.asList(e));
    for (EdgeModel underlyingEdge : underlyingEdges) {
      cl.addEdge(underlyingEdge);
    }
    ee[0] = new EnvironmentEventModel(EnvironmentEventModel.Type.Fog, 2, cl);
    ee[0].setStartTime(0);
    ee[0].setEndTime(5000);
View Full Code Here

Examples of de.hpi.eworld.model.db.data.event.EdgeLocationModel.addEdge()

      }     
      chosenEdge = foundForwardEdge;
    }
   
    location.resetEdges();
    location.addEdge(chosenEdge);
    location.setDistance(GlobalPosition.from(getPosition()).distanceTo(chosenEdge.getFromNode().getPosition()));
    getModelElement().setLocation(location);
  }

  /**
 
View Full Code Here

Examples of de.timefinder.algo.graph.Matching.addEdge()

    @Test
    public void testAddEdge() {
        System.out.println("addEdge");

        Matching instance = new Matching();
        instance.addEdge(3, 4, 5.6f);
        instance.addEdge(3, 4, 7f);
        instance.addEdge(0, 5, 5.6f);

        assertEquals(2, instance.getEdges().size());
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.