Adding edge properties using DseGraphFrame API

Viewed 37

If I want to add edges with properties as data frames, what format should the properties data be in? I'm reading these docs, but it doesn't address anything about the format of the properties columns.

For instance:

Dataset<Row> edgesToAdd = sparkDataSetContainingData
            .select(
                dseGraphFrame.idColumn(lit(srcLabel), col("sourceName")).as("src"),
                dseGraphFrame.idColumn(lit(destLabel), col("destinationName")).as("dst"),
                lit(inputEdgeLabel).as("~label"),
                dseGraphFrame.idColumn("some_property_key", col("some_property_value")) // is this correct?
            );

    dseGraphFrame.updateEdges(edgesToAdd, true);
1 Answers
Related