Skip to content
Snippets Groups Projects
Commit 85a6645d authored by Ankur Dave's avatar Ankur Dave
Browse files

Add doc for Algorithms

parent 04c20e7f
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,16 @@ import scala.reflect.ClassTag ...@@ -4,6 +4,16 @@ import scala.reflect.ClassTag
import org.apache.spark.graphx._ import org.apache.spark.graphx._
/**
* Provides graph algorithms directly on [[org.apache.spark.graphx.Graph]] via an implicit
* conversion.
* @example
* {{{
* import org.apache.spark.graph.algorithms._
* val graph: Graph[_, _] = loadGraph()
* graph.connectedComponents()
* }}}
*/
class Algorithms[VD: ClassTag, ED: ClassTag](self: Graph[VD, ED]) { class Algorithms[VD: ClassTag, ED: ClassTag](self: Graph[VD, ED]) {
/** /**
* Run a dynamic version of PageRank returning a graph with vertex attributes containing the * Run a dynamic version of PageRank returning a graph with vertex attributes containing the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment