Examples of addEdges()


Examples of com.evelopers.unimod.glayout.graph.SimpleGraph.addEdges()

        for (int i = 0; i < se.length; i++) {
            se[i] = new SimpleEdge(sv[enums[i][0]], sv[enums[i][1]]);
        }

        sg.addEdges(Arrays.asList(se));
        sg.addVertices(Arrays.asList(sv));

        return sg;
    }
}
View Full Code Here

Examples of com.evelopers.unimod.glayout.graph.containers.Face.addEdges()

        sg.removePropertyAsc(GraphHelper.getInstance());

        Face f = new Face(sg);

        GraphsContainer vgc = new GraphsContainer(sg, f);
        f.addEdges(ac.getEdges());
        f.addVertices(ac.getVertices());
        f.setProperty(FICTIVE_KEY, FICTIVE_VALUE);
        gd.getFaces()
          .add(f);
View Full Code Here

Examples of com.intel.hadoop.graphbuilder.graph.simplegraph.SimpleGraph.addEdges()

    List<Integer> sources = Arrays.asList(1, 2, 3, 4, 5);
    List<Integer> targets = Arrays.asList(5, 4, 3, 2, 1);
    List<String> edata = Arrays.asList("a", "b", "c", "d", "e");

    assertEquals(mygraph.numEdges(), 0);
    mygraph.addEdges(sources, targets, edata);
    assertEquals(mygraph.numEdges(), sources.size());

    SimpleJsonFormatter formatter = new SimpleJsonFormatter();
    String s = formatter.structWriter(mygraph).toString();
    String expected = "{\"source\":1,\"targets\":[5]}\n"
View Full Code Here

Examples of com.thinkaurelius.faunus.FaunusVertex.addEdges()

                if (null == vertex) {
                    vertex = new FaunusVertex(id);
                    this.map.put(id, vertex);
                }
                vertex.getProperties().putAll(value.getProperties());
                vertex.addEdges(BOTH, WritableUtils.clone((FaunusVertex) value, context.getConfiguration()));
                this.counter++;
            }
            if (this.counter > MAX_MAP_SIZE)
                this.flush(context);
        }
View Full Code Here

Examples of info.leadinglight.jdot.Graph.addEdges()

        g().viewSvg();
    }

    public static Graph g() {
        Graph g = new Graph("abstract").setSize("6,6");
        g.addEdges(new Edge("S24", "27"), new Edge("S24", "25"),
                new Edge("S1", "10"), new Edge("S1", "2"), new Edge(
                        "S35", "36"), new Edge("S35", "43"), new Edge(
                        "S30", "31"), new Edge("S30", "33"), new Edge(
                        "9", "42"), new Edge("9", "T1"), new Edge("25",
                        "T1"), new Edge("25", "26"),
View Full Code Here

Examples of info.leadinglight.jdot.Graph.addEdges()

        g().viewSvg();
    }

    public static Graph g() {
        Graph g = new Graph("mike").setSize("8,8");
        g.addEdges(new Edge("a", "A"), new Edge("a", "m"), new Edge(
                "a", "E"), new Edge("t", "O"), new Edge("r", "V"),
                new Edge("r", "Q"), new Edge("p", "B"), new Edge("m",
                        "R"), new Edge("l", "C"), new Edge("c", "C"),
                new Edge("W", "X"), new Edge("W", "D"), new Edge("V",
                        "W"), new Edge("T", "U"), new Edge("Q", "T"),
View Full Code Here

Examples of org.openbel.framework.common.protonetwork.model.ProtoEdgeTable.addEdges()

        final TableProtoEdge edge1 = new TableProtoEdge(1, "INCREASES", 2);
        final TableProtoEdge edge2 =
                new TableProtoEdge(1, "DIRECTLY_DECREASES", 3);

        // for statement 0 add both edges in one call
        tbl.addEdges(0, edge1, edge2);

        // we should have one statement (0)
        assertThat(tbl.getStatementEdges().size(), is(1));

        // we should have two edges (0 and 1)
View Full Code Here

Examples of org.openbel.framework.common.protonetwork.model.ProtoEdgeTable.addEdges()

        final TableProtoEdge edge1 = new TableProtoEdge(1, "INCREASES", 2);
        final TableProtoEdge edge2 =
                new TableProtoEdge(1, "DIRECTLY_DECREASES", 3);

        // for statement 0 add both edges in subsequent calls
        tbl.addEdges(0, edge1);
        tbl.addEdges(0, edge2);

        // we should have one statement (0)
        assertThat(tbl.getStatementEdges().size(), is(1));
View Full Code Here

Examples of org.openbel.framework.common.protonetwork.model.ProtoEdgeTable.addEdges()

        final TableProtoEdge edge2 =
                new TableProtoEdge(1, "DIRECTLY_DECREASES", 3);

        // for statement 0 add both edges in subsequent calls
        tbl.addEdges(0, edge1);
        tbl.addEdges(0, edge2);

        // we should have one statement (0)
        assertThat(tbl.getStatementEdges().size(), is(1));

        // we should have two edges (0 and 1)
View Full Code Here

Examples of org.openbel.framework.common.protonetwork.model.ProtoEdgeTable.addEdges()

    public void testDuplicateEdges() {
        final ProtoEdgeTable tbl = new ProtoEdgeTable();

        // for statement 0, add edge triple "1 HAS_COMPONENT 2"
        final TableProtoEdge edge1 = new TableProtoEdge(1, "HAS_COMPONENT", 2);
        tbl.addEdges(0, edge1);

        // for statement 1, add the same edge
        final TableProtoEdge edge2 = new TableProtoEdge(1, "HAS_COMPONENT", 2);
        tbl.addEdges(1, edge2);
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.