((C) c).setLabel("new label");
assertEquals("new label", cV.getProperty("label"));
}
public void testSerializeEdgeType() {
Graph graph = new TinkerGraph();
FramedGraphFactory factory = new FramedGraphFactory(new TypedGraphModuleBuilder().withClass(A.class).withClass(B.class)
.withClass(C.class).build());
FramedGraph<Graph> framedGraph = factory.create(graph);
Vertex v1 = graph.addVertex(null);
Vertex v2 = graph.addVertex(null);
A a = framedGraph.addEdge(null, v1, v2, "label", Direction.OUT, A.class);
C c = framedGraph.addEdge(null, v1, v2, "label", Direction.OUT, C.class);
assertEquals("A", ((EdgeFrame) a).asEdge().getProperty("type"));
assertEquals("C", ((EdgeFrame) c).asEdge().getProperty("type"));
}