vesoft-inc / nebula-algorithm

Nebula-Algorithm is a Spark Application based on GraphX, which enables state of art Graph Algorithms to run on top of NebulaGraph and write back results to NebulaGraph.
71 stars 39 forks source link

fix data structure for nebula datasource #30

Closed Nicole00 closed 2 years ago

Nicole00 commented 2 years ago

3. if the num of labels does not equal the num of weights

  1. yeah, code will be unified.
  2. If hasWeight is false and weights is nonEmpty, the graph will has default 1.0 weight, means df has three columns and the third column has the same value 1.0. When hasWeight is false, the code will fetch no props of edge, because the config withNoColumn is true.
  3. good catch, will add config check.