Support Questions

Find answers, ask questions, and share your expertise

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Cloudera Community
- :
- Support
- :
- Support Questions
- :
- Who agreed with this topic

GraphX Shortest Path, how to list the path and not just the number of edges?

New Contributor

Created 01-12-2015 06:59 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

I have a graph loaded as an edgelist (el) and a sequence of vertices (verts) loaded. I can get the ShortestPathss to run using "val sp = ShortestPaths.run(el,verts)" and I can get the length of the shortest path out of there (say 6, meaning 6 edges between the verts). I'd like to know what those edges are.

My question is there any way to list the edges along the shortest path? and not just the length of the path?

Thanks