Re: Graphx traversal and merge interesting edges

2014-07-14 Thread HHB
Hi Ankur, FYI - in a naive attempt to enhance your solution, managed to create MergePatternPath. I think it works in expected way (atleast for the traversing problem in last email). I modified your code a bit. Also instead of EdgePattern I used List of Functions that match the whole edge

Re: Graphx traversal and merge interesting edges

2014-07-08 Thread HHB
Hi Ankur, I was trying out the PatterMatcher it works for smaller path, but I see that for the longer ones it continues to run forever... Here's what I am trying: https://gist.github.com/hihellobolke/dd2dc0fcebba485975d1 (The example of 3 share traders transacting in appl shares) The first

Re: Graphx traversal and merge interesting edges

2014-07-05 Thread Ankur Dave
Interesting problem! My understanding is that you want to (1) find paths matching a particular pattern, and (2) add edges between the start and end vertices of the matched paths. For (1), I implemented a pattern matcher for GraphX

Re: Graphx traversal and merge interesting edges

2014-07-05 Thread HHB
Thanks Ankur, Cannot thank you enough for this!!! I am reading your example still digesting grokking it though :-) I was breaking my head over this for past few hours. In my last futile attempts over past few hours. I was looking at Pregel... E.g if that could be used to see at what step

Graphx traversal and merge interesting edges

2014-07-04 Thread HHB
Hello Gurus, Pardon me I am noob @ Spark GraphX ( Scala) And I seek your wisdome here.. I want to know how to do a graph traversal and do selective merge on edges... Thanks to the documentation :-) I could create a simple graph of employees their colleagues. The a structure of Graph is

Fwd: Graphx traversal and merge interesting edges

2014-07-04 Thread H Bolke
Hello Gurus, Pardon me I am noob @ Spark GraphX ( Scala) And I seek your wisdome here.. I want to know how to do a graph traversal and do selective merge on edges... Thanks to the documentation :-) I could create a simple graph of employees their colleagues. The a structure of Graph is below,