Search in sources :

Example 1 with WeightedEdge

use of com.tinkerpop.frames.domain.incidences.WeightedEdge in project frames by tinkerpop.

the class FramedEdgeTest method testEquality.

@Test
public void testEquality() {
    //Deprecated Domain/Range:
    Created created = marko.getCreated().iterator().next();
    WeightedEdge weightedEdge = framedGraph.frame(created.asEdge(), Direction.OUT, WeightedEdge.class);
    assertEquals(created, weightedEdge);
    //Initial/Terminal:
    CreatedInfo createdInfo = marko.getCreatedInfo().iterator().next();
    assertEquals(createdInfo, weightedEdge);
}
Also used : CreatedInfo(com.tinkerpop.frames.domain.incidences.CreatedInfo) WeightedEdge(com.tinkerpop.frames.domain.incidences.WeightedEdge) Created(com.tinkerpop.frames.domain.incidences.Created) Test(org.junit.Test)

Aggregations

Created (com.tinkerpop.frames.domain.incidences.Created)1 CreatedInfo (com.tinkerpop.frames.domain.incidences.CreatedInfo)1 WeightedEdge (com.tinkerpop.frames.domain.incidences.WeightedEdge)1 Test (org.junit.Test)1