---
title: How to use GraphFrames on Databricks
description: Example notebooks for GraphFrames on Databricks. GraphFrames is a package for Apache Spark that provides DataFrame-based graphs.
canonical_url: https://docs.databricks.com/aws/en/integrations/graphframes/
---

# How to use GraphFrames on Databricks

This article includes example notebooks to help you get started using GraphFrames on Databricks. [GraphFrames](https://graphframes.io/) is a package for Apache Spark that provides DataFrame-based graphs. It provides high-level APIs in Java, Python, and Scala. It aims to provide both the functionality of GraphX and extended functionality taking advantage of Spark [DataFrames](https://docs.databricks.com/aws/en/getting-started/dataframes.md). This extended functionality includes motif finding, DataFrame-based serialization, and highly expressive graph queries.

This article includes three example notebooks: a introductory notebook available in Python and in Scala, and a Python user guide. For additional examples using GraphFrames with Scala, see [GraphFrames user guide - Scala](https://docs.databricks.com/aws/en/integrations/graphframes/user-guide-scala.md).

## Databricks Runtime recommendation for GraphFrames

Databricks recommends using a cluster running [Databricks Runtime for Machine Learning](https://docs.databricks.com/aws/en/machine-learning/databricks-runtime-ml.md), as it includes an optimized installation of GraphFrames.

If you are not using a cluster running Databricks Runtime ML, download the JAR file from the [GraphFrames library](https://mvnrepository.com/artifact/io.graphframes/graphframes-spark3), [load it to a volume, and install it onto your cluster](https://docs.databricks.com/aws/en/libraries/volume-libraries.md).

## Get started with GraphFrames

The following notebooks show you how to use GraphFrames to perform graph analysis.

#### Graph Analysis with GraphFrames (Python)

[Get notebook](https://docs.databricks.com/notebooks/source/graph-analysis-graphframes-python.html)

#### Graph Analysis with GraphFrames (Scala)

[Get notebook](https://docs.databricks.com/notebooks/source/graph-analysis-graphframes.html)

## GraphFrames user guide (Python)

The following notebook includes Python code examples of how to use GraphFrames.

#### GraphFrames Python notebook

[Get notebook](https://docs.databricks.com/notebooks/source/graphframes-user-guide-py.html)
