<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=GraphX</id>
	<title>GraphX - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=GraphX"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=GraphX&amp;action=history"/>
	<updated>2026-12-06T00:07:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://openlakehouse.io/w/index.php?title=GraphX&amp;diff=84&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@9783fe6</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=GraphX&amp;diff=84&amp;oldid=prev"/>
		<updated>2026-11-22T21:30:39Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@9783fe6&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:30, 22 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l13&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Verified|2026-11-22|the v4.3.0 tag of apache/spark (GraphX source and programming guide), the Spark 0.9.0, 1.2.0 and 4.0.0 to 4.3.0 release notes, SPARK-50857 and the October 2024 dev-list vote}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Verified|2026-11-22|the v4.3.0 tag of apache/spark (GraphX source and programming guide), the Spark 0.9.0, 1.2.0 and 4.0.0 to 4.3.0 release notes, SPARK-50857 and the October 2024 dev-list vote}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Status|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Not formally deprecated&lt;/del&gt;|note=A dev-list vote to deprecate GraphX passed in October 2024, but the deprecation ticket (SPARK-50857) is still open and Spark 4.3.0 carries no deprecation annotation or notice for GraphX. The vote result described GraphX as not currently maintained and suggested [[GraphFrames]] as a migration target. |ref=&amp;lt;ref name=&quot;jira50857&quot;&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/SPARK-50857 |title=SPARK-50857: Mark GraphX as deprecated |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Status|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;proposed&lt;/ins&gt;|note=A dev-list vote to deprecate GraphX passed in October 2024, but the deprecation ticket (SPARK-50857) is still open and Spark 4.3.0 carries no deprecation annotation or notice for GraphX. The vote result described GraphX as not currently maintained and suggested [[GraphFrames]] as a migration target. |ref=&amp;lt;ref name=&quot;jira50857&quot;&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/SPARK-50857 |title=SPARK-50857: Mark GraphX as deprecated |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;GraphX&amp;#039;&amp;#039;&amp;#039; is the graph processing library of [[Apache Spark]]: it extends Spark&amp;#039;s resilient distributed dataset (RDD) with a property graph, a directed multigraph with user-defined properties on each vertex and edge, and provides graph operators, a Pregel API and a library of graph algorithms.&amp;lt;ref name=&amp;quot;guide&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/graphx-programming-guide.md |title=GraphX Programming Guide (docs/graphx-programming-guide.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; GraphX still ships with Spark 4.3.0, but a 2024 proposal on the Spark dev mailing list noted no meaningful active development in the preceding three years.&amp;lt;ref name=&amp;quot;discuss&amp;quot; /&amp;gt; The Spark community then voted to deprecate it, and as of Spark 4.3.0 that decision has not been applied to the code or documentation.&amp;lt;ref name=&amp;quot;vote&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;jira50857&amp;quot; /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;GraphX&amp;#039;&amp;#039;&amp;#039; is the graph processing library of [[Apache Spark]]: it extends Spark&amp;#039;s resilient distributed dataset (RDD) with a property graph, a directed multigraph with user-defined properties on each vertex and edge, and provides graph operators, a Pregel API and a library of graph algorithms.&amp;lt;ref name=&amp;quot;guide&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/graphx-programming-guide.md |title=GraphX Programming Guide (docs/graphx-programming-guide.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; GraphX still ships with Spark 4.3.0, but a 2024 proposal on the Spark dev mailing list noted no meaningful active development in the preceding three years.&amp;lt;ref name=&amp;quot;discuss&amp;quot; /&amp;gt; The Spark community then voted to deprecate it, and as of Spark 4.3.0 that decision has not been applied to the code or documentation.&amp;lt;ref name=&amp;quot;vote&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;jira50857&amp;quot; /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-68:rev-84:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
	<entry>
		<id>https://openlakehouse.io/w/index.php?title=GraphX&amp;diff=68&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@9783fe6</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=GraphX&amp;diff=68&amp;oldid=prev"/>
		<updated>2026-11-22T21:29:54Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@9783fe6&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox software&lt;br /&gt;
| name                = GraphX&lt;br /&gt;
| developer           = [[Apache Software Foundation]] ([[Apache Spark]] project)&lt;br /&gt;
| initial_release     = Spark 0.9.0 (alpha); stable API since Spark 1.2.0&lt;br /&gt;
| latest_release      = Spark 4.3.0&lt;br /&gt;
| latest_release_date = 2026-10-30&lt;br /&gt;
| written_in          = Scala&lt;br /&gt;
| type                = Graph processing library (RDD-based)&lt;br /&gt;
| license             = Apache License 2.0&lt;br /&gt;
| website             = [https://spark.apache.org/docs/4.3.0/graphx-programming-guide.html GraphX Programming Guide]&lt;br /&gt;
| repo                = [https://github.com/apache/spark/tree/v4.3.0/graphx github.com/apache/spark (graphx/)]&lt;br /&gt;
| related             = [[GraphFrames]], [[Apache Spark]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-22|the v4.3.0 tag of apache/spark (GraphX source and programming guide), the Spark 0.9.0, 1.2.0 and 4.0.0 to 4.3.0 release notes, SPARK-50857 and the October 2024 dev-list vote}}&lt;br /&gt;
{{Status|Not formally deprecated|note=A dev-list vote to deprecate GraphX passed in October 2024, but the deprecation ticket (SPARK-50857) is still open and Spark 4.3.0 carries no deprecation annotation or notice for GraphX. The vote result described GraphX as not currently maintained and suggested [[GraphFrames]] as a migration target. |ref=&amp;lt;ref name=&amp;quot;jira50857&amp;quot;&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/SPARK-50857 |title=SPARK-50857: Mark GraphX as deprecated |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;GraphX&amp;#039;&amp;#039;&amp;#039; is the graph processing library of [[Apache Spark]]: it extends Spark&amp;#039;s resilient distributed dataset (RDD) with a property graph, a directed multigraph with user-defined properties on each vertex and edge, and provides graph operators, a Pregel API and a library of graph algorithms.&amp;lt;ref name=&amp;quot;guide&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/graphx-programming-guide.md |title=GraphX Programming Guide (docs/graphx-programming-guide.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; GraphX still ships with Spark 4.3.0, but a 2024 proposal on the Spark dev mailing list noted no meaningful active development in the preceding three years.&amp;lt;ref name=&amp;quot;discuss&amp;quot; /&amp;gt; The Spark community then voted to deprecate it, and as of Spark 4.3.0 that decision has not been applied to the code or documentation.&amp;lt;ref name=&amp;quot;vote&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;jira50857&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Status ==&lt;br /&gt;
Whether GraphX is deprecated depends on which source is read, and the sources do not agree.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Spark code and documentation (4.3.0):&amp;#039;&amp;#039;&amp;#039; The &amp;lt;code&amp;gt;graphx&amp;lt;/code&amp;gt; module at the v4.3.0 tag has no &amp;lt;code&amp;gt;@deprecated&amp;lt;/code&amp;gt; annotations on its public API, and the GraphX programming guide has no deprecation notice.&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt; The Spark 4.0.0 to 4.3.0 release notes list no GraphX deprecation; the 4.0.0 notes deprecate SparkR and other APIs, but not GraphX.&amp;lt;ref name=&amp;quot;r400&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-4-0-0.html |title=Spark Release 4.0.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Spark dev mailing list:&amp;#039;&amp;#039;&amp;#039; In September 2024 a thread on the Spark dev mailing list proposed deprecating GraphX before the 4.0 branch was cut, noting no meaningful active development for over three years.&amp;lt;ref name=&amp;quot;discuss&amp;quot;&amp;gt;{{Cite web |url=https://lists.apache.org/thread/qrvo6xrt8zvp5ss73z5spt9q89r0htwo |title=[DISCUSS] Deprecate GraphX OR Find new maintainers interested in GraphX OR leave it as is? |publisher=dev@spark.apache.org |date=2024-09-29 |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The vote that followed closed on 7 October 2024 and was declared passed, with two -1 votes. The result email proposed a documentation note saying that GraphX &amp;quot;is not currently maintained and if maintainers are not found may be removed in future minor versions&amp;quot;, and recommended GraphFrames or openCypher on Spark as migration targets.&amp;lt;ref name=&amp;quot;vote&amp;quot;&amp;gt;{{Cite web |url=https://lists.apache.org/thread/2nd08qpr8nwbtog5bgnpfgkn1r42cd5m |title=Re: [VOTE] Officialy Deprecate GraphX in Spark 4 |publisher=dev@spark.apache.org |date=2024-10-07 |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;JIRA:&amp;#039;&amp;#039;&amp;#039; SPARK-50857, &amp;quot;Mark GraphX as deprecated&amp;quot;, was opened in January 2025 with a link to the vote. It is unresolved and has no fix version.&amp;lt;ref name=&amp;quot;jira50857&amp;quot; /&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GraphFrames documentation:&amp;#039;&amp;#039;&amp;#039; The GraphFrames project states that GraphX &amp;quot;is deprecated in the upstream Apache Spark and is not maintained anymore&amp;quot;, and its quick start says GraphX was deprecated in Spark 4.0.x.&amp;lt;ref name=&amp;quot;gfabout&amp;quot;&amp;gt;{{Cite web |url=https://graphframes.io/01-about/01-index.html |title=About GraphFrames |publisher=GraphFrames |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;gfquick&amp;quot;&amp;gt;{{Cite web |url=https://graphframes.io/02-quick-start/02-quick-start.html |title=Quick-Start |publisher=GraphFrames |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The GraphFrames blog links its statement that GraphX was deprecated to the dev-list discussion thread.&amp;lt;ref&amp;gt;{{Cite web |url=https://graphframes.io/05-blog/1000-graphframes-is-back.html |title=GraphFrames is back! |publisher=GraphFrames |date=2025-08-01 |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; No Spark 4.x release includes a GraphX deprecation.&lt;br /&gt;
&lt;br /&gt;
In short: the Spark community voted to deprecate GraphX and the vote result described it as unmaintained, but no Spark release up to 4.3.0 marks it deprecated. The GraphX module and its API are still part of Spark 4.3.0. Both the vote result and the GraphFrames project point new graph work to [[GraphFrames]].&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
GraphX first shipped as an alpha component in Spark 0.9.0, where the release notes recommended it over the older Bagel API.&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-0-9-0.html |title=Spark Release 0.9.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; In Spark 1.2.0 GraphX graduated from alpha and gained a stable API, with a guarantee that applications written against it would keep working in future Spark versions without code changes. The same release introduced the &amp;lt;code&amp;gt;aggregateMessages&amp;lt;/code&amp;gt; API and deprecated &amp;lt;code&amp;gt;mapReduceTriplets&amp;lt;/code&amp;gt;.&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-1-2-0.html |title=Spark Release 1.2.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Programming model ==&lt;br /&gt;
A GraphX graph is a pair of distributed collections: a &amp;lt;code&amp;gt;VertexRDD&amp;lt;/code&amp;gt; of vertex IDs and properties and an &amp;lt;code&amp;gt;EdgeRDD&amp;lt;/code&amp;gt; of edges with properties. Like RDDs, graphs are immutable, distributed and fault tolerant; operators return new graphs.&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The guide groups the API into:&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Property and structural operators&amp;#039;&amp;#039;&amp;#039;, such as &amp;lt;code&amp;gt;mapVertices&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;reverse&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;subgraph&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mask&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Join operators&amp;#039;&amp;#039;&amp;#039;, such as &amp;lt;code&amp;gt;joinVertices&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;outerJoinVertices&amp;lt;/code&amp;gt;, that bring RDD data into a graph.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Neighborhood aggregation&amp;#039;&amp;#039;&amp;#039; through &amp;lt;code&amp;gt;aggregateMessages&amp;lt;/code&amp;gt;, which sends messages along edges and merges them at each vertex.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Pregel&amp;#039;&amp;#039;&amp;#039;, a bulk-synchronous, vertex-centric API for iterative algorithms. The guide recommends it for iterative computation because it unpersists intermediate results correctly.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Graph builders&amp;#039;&amp;#039;&amp;#039;, such as &amp;lt;code&amp;gt;GraphLoader.edgeListFile&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Graph.apply&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Graph.fromEdges&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The algorithm library at the v4.3.0 tag contains PageRank, connected components, strongly connected components, label propagation, shortest paths, triangle count and SVD++.&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark/tree/v4.3.0/graphx/src/main/scala/org/apache/spark/graphx/lib |title=graphx/src/main/scala/org/apache/spark/graphx/lib at v4.3.0 |publisher=GitHub |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following Scala example runs in the Spark 4.3 shell in classic mode, where &amp;lt;code&amp;gt;sc&amp;lt;/code&amp;gt; is the &amp;lt;code&amp;gt;SparkContext&amp;lt;/code&amp;gt;. It builds a three-vertex graph and runs dynamic PageRank until the ranks change by less than the tolerance.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;scala&amp;quot;&amp;gt;&lt;br /&gt;
import org.apache.spark.graphx.{Edge, Graph}&lt;br /&gt;
&lt;br /&gt;
val users = sc.parallelize(Seq((1L, &amp;quot;alice&amp;quot;), (2L, &amp;quot;bob&amp;quot;), (3L, &amp;quot;carol&amp;quot;)))&lt;br /&gt;
val follows = sc.parallelize(Seq(&lt;br /&gt;
  Edge(1L, 2L, &amp;quot;follows&amp;quot;), Edge(2L, 3L, &amp;quot;follows&amp;quot;), Edge(3L, 1L, &amp;quot;follows&amp;quot;)))&lt;br /&gt;
&lt;br /&gt;
val graph = Graph(users, follows)&lt;br /&gt;
val ranks = graph.pageRank(0.0001).vertices&lt;br /&gt;
&lt;br /&gt;
ranks.join(users).collect().foreach { case (_, (rank, name)) =&amp;gt;&lt;br /&gt;
  println(f&amp;quot;$name%s: $rank%.3f&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
GraphX is built on RDDs and the &amp;lt;code&amp;gt;SparkContext&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt; The Spark Connect documentation lists &amp;lt;code&amp;gt;SparkContext&amp;lt;/code&amp;gt; and RDD as unsupported in Spark Connect for both Python and Scala, so GraphX programs need a classic Spark application rather than a [[Spark Connect]] client.&amp;lt;ref&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/spark-connect-overview.html |title=Spark Connect Overview (Spark 4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; Because GraphX works on RDDs, it does not use the Catalyst optimizer that plans DataFrame queries; the GraphFrames project cites this, and the memory cost of serializing JVM objects in RDDs, as reasons for its DataFrame-based design.&amp;lt;ref name=&amp;quot;gfabout&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Alternatives ==&lt;br /&gt;
{{Main|GraphFrames}}&lt;br /&gt;
[[GraphFrames]] is a separate open source package that represents a graph as two Spark DataFrames (vertices and edges). It adds motif finding and runs through the DataFrame engine. It provides conversion to and from GraphX, and from version 0.10.0 it ships its own internal fork of GraphX for the algorithms that it does not yet implement natively.&amp;lt;ref name=&amp;quot;gfquick&amp;quot; /&amp;gt; The October 2024 vote result also named openCypher on Spark as a possible target.&amp;lt;ref name=&amp;quot;vote&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[GraphFrames]]&lt;br /&gt;
* [[Apache Spark]]&lt;br /&gt;
* [[Spark Connect]]&lt;br /&gt;
* [[Spark Streaming (DStreams)]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Navbox open lakehouse}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Concepts]]&lt;br /&gt;
[[Category:Glossary terms]]&lt;br /&gt;
[[Category:Apache Spark]]&lt;/div&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
</feed>