Uploaded image for project: 'S2Graph'
  1. S2Graph
  2. S2GRAPH-38

Transform option gives wrong result since it transform degree edge too.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Minor
    • Resolution: Done
    • None
    • None
    • None

    Description

      There is no check if edge is degreeEdge or normal indexEdge when we transform fetched edges using EdgeTransformer on QueryParam.

      I think it is necessary to skip Graph.convertEdges when edge is degreeEdge

      ex) there is no edges exist from srcVertex "a". if we query with "transform": [["from"]], then now query result has one edge

      {"from": "a", "to": "a"}

      . this is an edge that transformed from degreeEdge

      {"from": "a", "to": "0"}

      .

      I think using special target vertex id "0" in degree edge yield this problem and buggy, but for now transforming edge based on queryParam's EdgeTransformer can skip transform if considering edge is degreeEdge.

      Attachments

        Activity

          People

            steamshon Do Yung Yoon
            steamshon Do Yung Yoon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: