<?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=GraphFrames</id>
	<title>GraphFrames - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=GraphFrames"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=GraphFrames&amp;action=history"/>
	<updated>2026-12-06T00:07:41Z</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=GraphFrames&amp;diff=67&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=GraphFrames&amp;diff=67&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                = GraphFrames&lt;br /&gt;
| developer           = GraphFrames community (originally UC Berkeley, MIT and Databricks)&lt;br /&gt;
| initial_release     = 2016&lt;br /&gt;
| latest_release      = 0.12.3&lt;br /&gt;
| latest_release_date = 2026-10-05&lt;br /&gt;
| written_in          = Scala, Python&lt;br /&gt;
| type                = Graph processing library for Apache Spark (DataFrame-based)&lt;br /&gt;
| license             = Apache License 2.0&lt;br /&gt;
| website             = [https://graphframes.io graphframes.io]&lt;br /&gt;
| repo                = [https://github.com/graphframes/graphframes github.com/graphframes/graphframes]&lt;br /&gt;
| related             = [[GraphX]], [[Apache Spark]], [[Spark Connect]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-22|the graphframes/graphframes repository at tag v0.12.3, the GitHub releases API (latest release v0.12.3) and graphframes.io}}&lt;br /&gt;
{{Status|active |note=Latest release 0.12.3, published 5 October 2026. |ref=&amp;lt;ref name=&amp;quot;rel&amp;quot;&amp;gt;{{Cite web |url=https://github.com/graphframes/graphframes/releases/tag/v0.12.3 |title=Release v0.12.3 |publisher=GitHub |date=2026-10-05 |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;GraphFrames&amp;#039;&amp;#039;&amp;#039; is an open source graph processing package for [[Apache Spark]] that represents a graph as a pair of Spark DataFrames, one of vertices and one of edges, and provides graph algorithms, the Pregel and AggregateMessages APIs, and a motif-finding query language on top of them.&amp;lt;ref name=&amp;quot;readme&amp;quot;&amp;gt;{{Cite web |url=https://github.com/graphframes/graphframes/blob/v0.12.3/README.md |title=GraphFrames README (v0.12.3) |publisher=GitHub |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; It has APIs in Scala, Java and Python, and it is developed outside the Apache Spark project. When the Spark community voted in 2024 to deprecate Spark&amp;#039;s RDD-based [[GraphX]] library, the vote result named GraphFrames as a migration target.&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;
&lt;br /&gt;
== Data model ==&lt;br /&gt;
A GraphFrame is built from two DataFrames. The vertex DataFrame must have a column named &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; with a unique ID for each vertex. The edge DataFrame must have columns named &amp;lt;code&amp;gt;src&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dst&amp;lt;/code&amp;gt; with the source and destination vertex IDs. Both can have any other columns, which act as vertex and edge attributes. A GraphFrame can also be built from an edge DataFrame alone, in which case the vertices are inferred from the edges.&amp;lt;ref name=&amp;quot;create&amp;quot;&amp;gt;{{Cite web |url=https://graphframes.io/04-user-guide/01-creating-graphframes.html |title=Creating GraphFrames |publisher=GraphFrames |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because a GraphFrame is made of DataFrames, graph queries are planned by Spark&amp;#039;s Catalyst optimizer and Adaptive Query Execution, and graph results can be joined, filtered and written like any other DataFrame.&amp;lt;ref name=&amp;quot;about&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;&lt;br /&gt;
&lt;br /&gt;
== Relation to GraphX ==&lt;br /&gt;
{{Main|GraphX}}&lt;br /&gt;
The GraphFrames documentation describes the project as aiming to provide the functionality of GraphX plus features that take advantage of DataFrames, such as motif finding and DataFrame-based serialization.&amp;lt;ref name=&amp;quot;about&amp;quot; /&amp;gt; The two libraries differ in representation and optimization:&amp;lt;ref name=&amp;quot;about&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! !! GraphX !! GraphFrames&lt;br /&gt;
|-&lt;br /&gt;
| Graph representation || &amp;lt;code&amp;gt;VertexRDD&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;EdgeRDD&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;vertices&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;edges&amp;lt;/code&amp;gt; DataFrames&lt;br /&gt;
|-&lt;br /&gt;
| Optimization || Its own partitioning strategy and partition index || Catalyst optimizer and Adaptive Query Execution&lt;br /&gt;
|-&lt;br /&gt;
| Languages || Scala (Spark guide) || Scala, Java, Python&lt;br /&gt;
|-&lt;br /&gt;
| Part of Apache Spark || Yes || No (separate project)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
GraphFrames provides most algorithms either as a native DataFrame implementation or as a wrapper over GraphX. Its own benchmarks show GraphX can still be the better choice for small and medium graphs, so the library keeps conversion methods between the two.&amp;lt;ref name=&amp;quot;about&amp;quot; /&amp;gt; Since release 0.10.0, GraphFrames ships its own internal fork of GraphX (package &amp;lt;code&amp;gt;org.apache.spark.graphframes.graphx&amp;lt;/code&amp;gt;, Maven artifact &amp;lt;code&amp;gt;graphframes-graphx&amp;lt;/code&amp;gt;) instead of using the GraphX in Spark. The project treats the fork as internal API.&amp;lt;ref name=&amp;quot;about&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;install&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;quick&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;&lt;br /&gt;
&lt;br /&gt;
The GraphFrames documentation states that GraphX is deprecated upstream and no longer maintained. Apache Spark itself had not marked GraphX deprecated as of Spark 4.3.0; see [[GraphX#Status]].&amp;lt;ref name=&amp;quot;about&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Motif finding ==&lt;br /&gt;
Motif finding searches a graph for structural patterns. GraphFrames expresses patterns in a small domain-specific language passed to &amp;lt;code&amp;gt;find&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;(a)-[e]-&amp;gt;(b)&amp;lt;/code&amp;gt; is an edge &amp;lt;code&amp;gt;e&amp;lt;/code&amp;gt; from vertex &amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt; to vertex &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt;, and patterns are joined with semicolons. The result is a DataFrame with one struct column per named vertex or edge.&amp;lt;ref name=&amp;quot;motif&amp;quot;&amp;gt;{{Cite web |url=https://graphframes.io/04-user-guide/04-motif-finding.html |title=Motif finding |publisher=GraphFrames |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The language supports anonymous elements (&amp;lt;code&amp;gt;(a)-[]-&amp;gt;(b)&amp;lt;/code&amp;gt;), negated edges (&amp;lt;code&amp;gt;!(b)-[]-&amp;gt;(a)&amp;lt;/code&amp;gt;), undirected patterns (&amp;lt;code&amp;gt;(a)-[e]-(b)&amp;lt;/code&amp;gt;), fixed-length paths (&amp;lt;code&amp;gt;(a)-[e*2]-&amp;gt;(c)&amp;lt;/code&amp;gt;) and bounded variable-length paths (&amp;lt;code&amp;gt;(a)-[e*1..3]-&amp;gt;(c)&amp;lt;/code&amp;gt;). Unbounded paths are not supported. Conditions on vertex or edge attributes are applied as DataFrame filters on the result. Motif finding is translated into a series of joins, and the documentation suggests enabling Spark&amp;#039;s cost-based optimizer and join reordering to improve it.&amp;lt;ref name=&amp;quot;motif&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Algorithms ==&lt;br /&gt;
The user guide covers centrality metrics, traversals and connectivity, community detection, subgraphs, message passing, Pregel, labeled property graphs and graph machine learning.&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt; Algorithms listed in the documentation include:&amp;lt;ref name=&amp;quot;quick&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt;&lt;br /&gt;
* Traversal and connectivity: breadth-first search, shortest paths, all simple paths, connected components and strongly connected components.&lt;br /&gt;
* Ranking and structure: PageRank, parallel personalized PageRank, triangle count, K-Core, cycle detection (Rocha-Thatte) and maximal independent set.&lt;br /&gt;
* Community detection: label propagation and power iteration clustering.&lt;br /&gt;
* Embeddings: random-walk embeddings with Word2Vec or Hash2Vec.&lt;br /&gt;
&lt;br /&gt;
The quick start marks which algorithms have a native GraphFrames implementation. PageRank, parallel personalized PageRank, strongly connected components and SVD++ run through GraphX in that table.&amp;lt;ref name=&amp;quot;quick&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following PySpark example builds a small graph, prints in-degrees and uses motif finding to find pairs where one vertex calls the other a friend and is called an enemy back. It follows the project README and runs on Spark 4.x after &amp;lt;code&amp;gt;pip install graphframes-py==0.12.3&amp;lt;/code&amp;gt; and starting PySpark with &amp;lt;code&amp;gt;--packages io.graphframes:graphframes-spark4_2.13:0.12.3&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;install&amp;quot;&amp;gt;{{Cite web |url=https://graphframes.io/02-quick-start/01-installation.html |title=Installation |publisher=GraphFrames |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
from graphframes import GraphFrame&lt;br /&gt;
&lt;br /&gt;
v = spark.createDataFrame([(1, &amp;quot;Alice&amp;quot;), (2, &amp;quot;Bob&amp;quot;), (3, &amp;quot;Charlie&amp;quot;)], [&amp;quot;id&amp;quot;, &amp;quot;name&amp;quot;])&lt;br /&gt;
e = spark.createDataFrame(&lt;br /&gt;
    [(1, 2, &amp;quot;friend&amp;quot;), (2, 1, &amp;quot;friend&amp;quot;), (2, 3, &amp;quot;friend&amp;quot;), (3, 2, &amp;quot;enemy&amp;quot;)],&lt;br /&gt;
    [&amp;quot;src&amp;quot;, &amp;quot;dst&amp;quot;, &amp;quot;relationship&amp;quot;],&lt;br /&gt;
)&lt;br /&gt;
g = GraphFrame(v, e)&lt;br /&gt;
&lt;br /&gt;
g.inDegrees.show()&lt;br /&gt;
&lt;br /&gt;
(g.find(&amp;quot;(a)-[e]-&amp;gt;(b); (b)-[e2]-&amp;gt;(a)&amp;quot;)&lt;br /&gt;
  .filter(&amp;quot;e.relationship = &amp;#039;friend&amp;#039; AND e2.relationship = &amp;#039;enemy&amp;#039;&amp;quot;)&lt;br /&gt;
  .show())&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Spark Connect ==&lt;br /&gt;
GraphFrames supports [[Spark Connect]] through a server plugin. The Spark Connect server is started with the &amp;lt;code&amp;gt;graphframes-connect&amp;lt;/code&amp;gt; package and the setting &amp;lt;code&amp;gt;spark.connect.extensions.relation.classes=org.apache.spark.sql.graphframes.GraphFramesConnect&amp;lt;/code&amp;gt;. The only client bundled with the package is the PySpark client, which detects a Spark Connect session and uses the plugin automatically. The documentation warns that the plugin is not compatible with Databricks&amp;#039; managed Spark Connect without a vendor-specific build.&amp;lt;ref name=&amp;quot;install&amp;quot; /&amp;gt; Spark Connect and Spark 4.x support were first released in GraphFrames 0.9.0.&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/graphframes/graphframes/releases/tag/v0.9.0 |title=Release v0.9.0 |publisher=GitHub |date=2025-07-17 |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Releases and governance ==&lt;br /&gt;
GraphFrames is published to Maven Central under the &amp;lt;code&amp;gt;io.graphframes&amp;lt;/code&amp;gt; namespace, with separate artifacts per Spark major version and Scala version (for example &amp;lt;code&amp;gt;graphframes-spark4_2.13&amp;lt;/code&amp;gt;), and to PyPI as &amp;lt;code&amp;gt;graphframes-py&amp;lt;/code&amp;gt;. The installation page lists support for Spark 3.x and 4.x.&amp;lt;ref name=&amp;quot;install&amp;quot; /&amp;gt; The latest release, v0.12.3 of 5 October 2026, fixes connected-components correctness issues.&amp;lt;ref name=&amp;quot;rel&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The project was created as a collaboration among UC Berkeley, MIT, Databricks and the open source community, and is now maintained by a group of individual contributors. It is licensed under the Apache License 2.0 and is not an Apache Software Foundation project.&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt; The project&amp;#039;s blog post for release 0.9.2 describes a revival in 2025, after a long gap in development, prompted by the GraphX deprecation discussion in Spark; the same post announced the new Maven group ID, the new PyPI name and the graphframes.io site.&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; The design is described in the 2016 paper &amp;quot;GraphFrames: An Integrated API for Mixing Graph and Relational Queries&amp;quot; by Dave et al.&amp;lt;ref&amp;gt;{{Cite web |url=https://people.eecs.berkeley.edu/~matei/papers/2016/grades_graphframes.pdf |title=GraphFrames: An Integrated API for Mixing Graph and Relational Queries |author=Dave, A. et al. |publisher=GRADES 2016 |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[GraphX]]&lt;br /&gt;
* [[Apache Spark]]&lt;br /&gt;
* [[Spark Connect]]&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>