You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/04-user-guide/05-traversals.md
+59-12Lines changed: 59 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,8 @@
2
2
3
3
## Shortest paths
4
4
5
-
Computes shortest paths from each vertex to the given set of landmark vertices, where landmarks are specified by the vertex ID. Note that this takes an edge direction into account.
5
+
Computes shortest paths from each vertex to the given set of landmark vertices, where landmarks are specified by the
6
+
vertex ID. Note that this takes an edge direction into account.
6
7
7
8
See [Wikipedia](https://en.wikipedia.org/wiki/Shortest_path_problem) for a background.
Breadth-first search (BFS) finds the shortest path(s) from one vertex (or a set of vertices) to another vertex (or a set of vertices). The beginning and end vertices are specified as Spark DataFrame expressions.
38
+
Breadth-first search (BFS) finds the shortest path(s) from one vertex (or a set of vertices) to another vertex (or a set
39
+
of vertices). The beginning and end vertices are specified as Spark DataFrame expressions.
38
40
39
41
See [Wikipedia on BFS](https://en.wikipedia.org/wiki/Breadth-first_search) for more background.
@@ -84,7 +88,12 @@ Computes the connected component membership of each vertex and returns a graph w
84
88
85
89
See [Wikipedia](https://en.wikipedia.org/wiki/Connected_component_(graph_theory)) for the background.
86
90
87
-
**NOTE:** With GraphFrames 0.3.0 and later releases, the default Connected Components algorithm requires setting a Spark checkpoint directory. Users can revert to the old algorithm using `connectedComponents.setAlgorithm("graphx")`. Starting from GraphFrames 0.9.3 release, users can also use `localCheckpoints` that does not require setting a Spark checkpoint directory. To use `localCheckpoints` users can set the config `spark.graphframes.useLocalCheckpoints` to `true` or use the API `connectedComponents.setUseLocalCheckpoints(true)`. While `localCheckpoints` provides better performance they are not as reliable as the persistent checkpointing.
91
+
**NOTE:** With GraphFrames 0.3.0 and later releases, the default Connected Components algorithm requires setting a Spark
92
+
checkpoint directory. Users can revert to the old algorithm using `connectedComponents.setAlgorithm("graphx")`. Starting
93
+
from GraphFrames 0.9.3 release, users can also use `localCheckpoints` that does not require setting a Spark checkpoint
94
+
directory. To use `localCheckpoints` users can set the config `spark.graphframes.useLocalCheckpoints` to `true` or use
95
+
the API `connectedComponents.setUseLocalCheckpoints(true)`. While `localCheckpoints` provides better performance they
96
+
are not as reliable as the persistent checkpointing.
Compute the strongly connected component (SCC) of each vertex and return a graph with each vertex assigned to the SCC containing that vertex. At the moment, SCC in GraphFrames is a wrapper around GraphX implementation.
128
+
Compute the strongly connected component (SCC) of each vertex and return a graph with each vertex assigned to the SCC
129
+
containing that vertex. At the moment, SCC in GraphFrames is a wrapper around GraphX implementation.
120
130
121
131
See [Wikipedia](https://en.wikipedia.org/wiki/Strongly_connected_component) for the background.
0 commit comments