Takeshi Yamamuro created SPARK-5352:
---------------------------------------

             Summary: Add getPartitionStrategy in Graph
                 Key: SPARK-5352
                 URL: https://issues.apache.org/jira/browse/SPARK-5352
             Project: Spark
          Issue Type: Improvement
          Components: GraphX
            Reporter: Takeshi Yamamuro
            Priority: Minor


Graph remembers an applied partition strategy in paritionBy() and
returns it via getPartitionStrategy().
This is useful in case of the following situation;

val g1 = GraphLoader.edgeListFile(sc, "graph.txt")
val g2 = g1.partitionBy(EdgePartition2D, 2)

// Modifiy (e.g., add, contract, ...) edges in g2
val newEdges = ...

// Re-build a new graph based on g2
val g3 = Graph(g1.vertices, newEdges)

// Partition edges in a similar way of g2
val g4 = g3.partitionBy(g2.getParitionStrategy, 2)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to