spark-graphx

GraphX - Retrieving all nodes from a path

痴心易碎 提交于 2019-11-26 22:10:34
问题 In GraphX, is there a way to retrieve all the nodes and edges that are on a path that are of a certain length? More specifically, I would like to get all the 10-step paths from A to B. For each path, I would like to get the list of nodes and edges. Thanks. 回答1: Disclaimer : This is only intended to show GraphFrames path filtering capabilities. Well, theoretically speaking it is possible. You can use GraphFrames patterns to find paths. Lets assume your data looks as follows: import org