Github user PBGraff commented on the issue:

    https://github.com/apache/tinkerpop/pull/801
  
    Hi @spmallette, I'm trying to add to the kitchen sink graph for my message 
passing test and I want to make sure I'm doing it right. I'm doing this in Java 
and calling a custom `main()`:
    
    ```
    Graph g1 = TinkerGraph.open();
    Graph g2 = TinkerGraph.open();
    Graph g3 = TinkerGraph.open();
        
    try {
      // GraphSON v1.0
      
g1.io(GraphSONIo.build(GraphSONVersion.V1_0)).readGraph("../tinkerpop/data/tinkerpop-sink.json");
      addData(g1);
      
g1.io(GraphSONIo.build(GraphSONVersion.V1_0)).writeGraph("tinkerpop-sink.json");
      // GraphSON v2.0
      
g2.io(GraphSONIo.build(GraphSONVersion.V2_0)).readGraph("../tinkerpop/data/tinkerpop-sink-v2d0.json");
      addData(g2);
      
g2.io(GraphSONIo.build(GraphSONVersion.V2_0)).writeGraph("tinkerpop-sink-v2d0.json");
      // Gryo
      g3.io(GryoIo.build()).readGraph("../tinkerpop/data/tinkerpop-sink.kryo");
      addData(g3);
      g3.io(GryoIo.build()).writeGraph("tinkerpop-sink.kryo");
    } catch (IOException e) {
      e.printStackTrace();
    }
    ```
    
    where 
    
    ```
    private static void addData(Graph g) {
      Vertex a = g.addVertex(T.id, 1L, T.label, LABEL, PROPERTYIN, VTX_A);
      Vertex b = g.addVertex(T.id, 2L, T.label, LABEL, PROPERTYIN, VTX_B);
      a.addEdge(EDGE_LABEL, b);
      a.addEdge(EDGE_LABEL, a);
    }
    ```
    
    `V1_0` appears to be coming out right, but `V2_0` looks to be typed when 
the original isn't. Plus, I can't see how to read/write typed versions as 
opposed to un-typed. Gryo appears to be straightforward. Should I add a GraphML 
version?


---

Reply via email to