You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/04/17 06:58:58 UTC

[jira] [Commented] (SPARK-5352) Add getPartitionStrategy in Graph

    [ https://issues.apache.org/jira/browse/SPARK-5352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14499251#comment-14499251 ] 

Apache Spark commented on SPARK-5352:
-------------------------------------

User 'maropu' has created a pull request for this issue:
https://github.com/apache/spark/pull/5549

> 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 partitionBy() 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)
> // Modify (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.getPartitionStrategy, 2)



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org