Examples of addNode()


Examples of org.graphstream.graph.implementations.AbstractGraph.addNode()

  @Test
  public void testReplay() {
    AbstractGraph g1 = new AdjacencyListGraph("g1");
    Graph g2 = new AdjacencyListGraph("g2");

    Node A1 = g1.addNode("A");
    Node B1 = g1.addNode("B");
    Node C1 = g1.addNode("C");

    Edge AB1 = g1.addEdge("AB", "A", "B");
    Edge BC1 = g1.addEdge("BC", "B", "C");
View Full Code Here

Examples of org.graphstream.graph.implementations.AdjacencyListGraph.addNode()

    GraphSpells graphSpells = new GraphSpells();
    Graph g = new AdjacencyListGraph("g");

    g.addSink(graphSpells);

    g.addNode("A");
    g.addNode("B");
    g.addNode("C");
    g.stepBegins(1);
    g.getNode("A").setAttribute("test1", 100);
    g.addEdge("AB", "A", "B");
View Full Code Here

Examples of org.graphstream.graph.implementations.DefaultGraph.addNode()

    JSONSender sender = new JSONSender("localhost", 8080,
      "workspace0");

    g.addSink(sender);

    Node node0 = g.addNode("node0");
    Edge edge = g.addEdge("edge", "node0", "node1", true);
    /*
     * node0.addAttribute("nodeAttribute", 0);
     * node0.changeAttribute("nodeAttribute", 1);
     * node0.removeAttribute("nodeAttribute");
 
View Full Code Here

Examples of org.graphstream.graph.implementations.MultiGraph.addNode()

    String style = "node{fill-mode:plain;fill-color:#567;size:6px;}";
    g.addAttribute("stylesheet", style);
    g.addAttribute("ui.antialias", true);
    g.addAttribute("layout.stabilization-limit", 0);
    for (int i = 0; i < 50; i++) {
        g.addNode(i + "");
        if (i > 0) {
      g.addEdge(i + "-" + (i - 1), i + "", (i - 1) + "");
      g.addEdge(i + "--" + (i / 2), i + "", (i / 2) + "");
        }
    }
View Full Code Here

Examples of org.graphstream.graph.implementations.SingleGraph.addNode()

  JSONSender sender = new JSONSender("localhost", 8080, "workspace0");
  sender.setDebug(true);
  graph.addSink(sender);

  graph.addNode("A");
  graph.addNode("B");
  graph.addNode("C");
  sleep();
  graph.addEdge("AB", "A", "B");
  graph.addEdge("BC", "B", "C");
View Full Code Here

Examples of org.graylog2.notifications.Notification.addNode()

    protected Notification getNotification() throws NodeNotFoundException {
        Notification notification = notificationService.buildNow();
        notification.addType(Notification.Type.NO_INPUT_RUNNING);
        notification.addSeverity(Notification.Severity.URGENT);
        notification.addNode(nodeId.toString());

        return notification;
    }

    @Override
View Full Code Here

Examples of org.hivedb.Hive.addNode()

  @Test
  public void installASchemaOnAnExistingNode() throws Exception {
    Hive hive = Hive.load(uri(), CachingDataSourceProvider.getInstance());
    String nodeName = "anExistingNode";
    Node node = new Node(nodeName, H2TestCase.TEST_DB, "unecessary", HiveDbDialect.H2);
    hive.addNode(node);
    WeatherSchema weatherSchema = WeatherSchema.getInstance();
    getService().install(weatherSchema.getName(), nodeName);
    validateSchema(weatherSchema, node);
  }
View Full Code Here

Examples of org.itsnat.impl.core.clientdoc.NodeCacheRegistryImpl.addNode()

            for(int i = 0; (currParent != null) && (currParent != cachedParent) && (i < maxParents); i++)
            {
                String parentId = nodeCache.getId(currParent);
                if (parentId == null) // No cacheado
                {
                    parentId = nodeCache.addNode(currParent);
                    if (parentId != null)
                    {
                        // Hemos cacheado un nuevo nodo, DEBEMOS LLAMAR toJSArray y enviar al cliente
                        // de otra manera el cliente NO se enterar� de este cacheado.
                        if (newCachedParentIds == null)
View Full Code Here

Examples of org.jahia.services.content.JCRNodeWrapper.addNode()

    final String tagsPath = getTagsPath(siteKey);
    JCRNodeWrapper tagTreeNode = session.getNode(tagsPath);
    if (tagTreeNode != null) {
      session.checkout(tagTreeNode);
      // TODO escape the tag node name
      node = tagTreeNode.addNode(tag, JAHIANT_TAG);
    } else {
      logger.error("No tags folder found for the path " + tagsPath + ". Skip creating new tag");
    }
    return node;
  }
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutManager.addNode()

          if newNodeDescription != null ) {
            if ( CommonUtils.nvl(value).trim().length() == 0 )
             value = null;

            // Adding a new node
            newNodeId = ulm.addNode(newNodeDescription,values2[0],value).getId();

            // if the new node is a fragment being added - we need to re-load the layout
            if ( newNodeDescription instanceof IALFolderDescription ) {
              IALFolderDescription folderDesc = (IALFolderDescription) newNodeDescription;
              if ( folderDesc.getFragmentNodeId() != null ) {
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.