Examples of Knows


Examples of com.tinkerpop.frames.domain.incidences.Knows

  }

  @Test
  public void testJavaHandlerEdges() {
    Knows knows = g.getEdge(7, Direction.OUT, Knows.class);
    Assert.assertEquals("marko<->vadas", knows.getNames());
  }
View Full Code Here

Examples of com.tinkerpop.frames.domain.incidences.Knows

        Person vertex = framedGraph.getVertex(-1, Person.class);
        Assert.assertNull(vertex);
        vertex = framedGraph.frame((Vertex)null, Person.class);
        Assert.assertNull(vertex);
       
        Knows edge = framedGraph.getEdge(-1, Knows.class);
        Assert.assertNull(edge);
        edge = framedGraph.frame((Edge)null, Knows.class);
        Assert.assertNull(edge);
       
    }
View Full Code Here

Examples of com.tinkerpop.frames.domain.incidences.Knows

                     newHashSet(marko.getCreated()));
        assertNull(markoCreatedRipple.getWeight());
        markoCreatedRipple.setWeight(0.0f);
        assertEquals(0.0f, markoCreatedRipple.getWeight(), 0.01f);

        Knows markoKnowsPeter = marko.addKnows(peter);
        assertEquals(newHashSet(markoKnowsPeter, markoKnowsVadas, markowKnowsJosh),
                     newHashSet(marko.getKnows()));
        assertNull(markoKnowsPeter.getWeight());
        markoKnowsPeter.setWeight(1.0f);
        assertEquals(1.0f, markoKnowsPeter.getWeight(), 0.01f);
    }
View Full Code Here

Examples of com.tinkerpop.frames.domain.incidences.Knows

    public void testAddingAdjacencies() {
        marko.addKnowsPerson(peter);
        Person bryn = marko.addKnowsNewPerson();
        bryn.setName("bryn");

        Knows markoKnowsBryn = framedGraph.frame(graph.getEdge(13), Knows.class);
        Knows markoKnowsPeter = framedGraph.frame(graph.getEdge(0), Knows.class);

        assertEquals(newHashSet(markoKnowsVadas, markowKnowsJosh, markoKnowsPeter, markoKnowsBryn),
                     newHashSet(marko.getKnows()));

        marko.addCreatedProject(ripple);
View Full Code Here

Examples of com.tinkerpop.frames.domain.incidences.Knows

    Person marko = framedGraph.getVertex(1, Person.class);
    Assert.assertTrue(marko instanceof AdditionalVertex);
    Assert.assertFalse(marko instanceof AdditionalEdge);

    Knows knows = marko.getKnows().iterator().next();
    Assert.assertTrue(knows instanceof AdditionalEdge);
    Assert.assertFalse(knows instanceof AdditionalVertex);

  }
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.