GitHub user balduz opened a pull request:

    https://github.com/apache/spark/pull/5598

    [SPARK-6978][GraphX] Compute all the direct and indirect relations for e...

    ...ach vertex
    
    Right now you can only get the direct connections of each vertex in a
    graph using collectNeighbors or collectNeighborIds. However, it would be
    very useful to be able to also get all the indirect connections of each
    vertex, with the degree of each of these connections.
    
    I have implemented this using Pregel, you call VertexConnections and
    specify the graph and the maximum degree you wish to retrieve (this
    second parameter is optional, if not specified it will retrieve every
    connection) and returns a map where for each key (degree) it contains a
    collection with all of the vertices.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/balduz/spark master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/5598.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5598
    
----
commit f328eb86eba5e2414ed3a53a64a762b0f2b77f02
Author: Carlos Balduz <[email protected]>
Date:   2015-04-20T16:51:02Z

    [SPARK-6978][GraphX] Compute all the direct and indirect relations for each 
vertex
    
    Right now you can only get the direct connections of each vertex in a
    graph using collectNeighbors or collectNeighborIds. However, it would be
    very useful to be able to also get all the indirect connections of each
    vertex, with the degree of each of these connections.
    I have implemented this using Pregel, you call VertexConnections and
    specify the graph and the maximum degree you wish to retrieve (this
    second parameter is optional, if not specified it will retrieve every
    connection) and returns a map where for each key (degree) it contains a
    collection with all of the vertices.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to