Querying Neo4j Aura from R with neo2R

R-bloggers 2026-05-20

[This article was first published on Patrice Godard, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Illustration of neo2R used to connect to Aura, generated with Gemini

1 Introduction

Graph databases excel at storing and traversing highly connected data used for recommendation engines, fraud detection, knowledge graphs, and social networks. Neo4j is one of the most widely used graph databases, and with Neo4j Aura, its managed cloud service now makes it easy to spin up a production-grade instance without any infrastructure overhead.

On the R side, the neo2R package has long been available for querying self-hosted Neo4j instances from R. Version 3.0.0 brings two important changes:

  1. Unified connection model — a single startGraph() call handles both a self-hosted Neo4j instance (http://localhost:7474) and a cloud Neo4j Aura instance (https://<id>.databases.neo4j.io).
  2. httr2 backend — the internal HTTP layer migrated from the deprecated httr package to httr2.

In this post, we’ll connect to the free Neo4j Aura demo database preloaded with the classic Movie Recommendations dataset, explore the graph with Cypher queries, and finish with an interactive network visualization built with visNetwork.


2 Prerequisites

install.packages(c("neo2R", "dplyr", "visNetwork"))
library(neo2R)library(dplyr)
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':    filter, lag
The following objects are masked from 'package:base':    intersect, setdiff, setequal, union
library(visNetwork)
Note

neo2R 3.0.0 requires R ≥ 4.1 and httr2 ≥ 1.0.0. Check your versions with packageVersion("neo2R") and packageVersion("httr2").


3 Connecting to Neo4j Aura

3.1 Create and Connect to an Aura Instance

Neo4j provides a free Aura Free tier (up to 200 k nodes / 400 k relationships).

Create a free instance at https://console.neo4j.io and get your connection details.

Connect to your instance with startGraph().

my_aura <- startGraph(  url = "https://<INSTANCEID>.databases.neo4j.io",  database = "INSTANCEID",  username = "INSTANCEID",  password = "INSTANCEPASSWORD"  ## api = "v2" is set automatically for *.databases.neo4j.io URLs)

3.2 The Movie Recommendations Dataset

Neo4j provides example datasets, and most of them are available as a one-click templates in the Neo4j Aura console.

The Movie Recommendations dataset is a graph example using a dataset of movie reviews for generating personalized, real-time recommendations. This dataset is also available on a demo server that can be accessed as follows.

graph <- startGraph(  url = "https://demo.neo4jlabs.com:7473",  database = "recommendations",  username = "recommendations",  password = "recommendations")

4 Exploring the schema

The Movie database contains the following node labels and relationship types:

Node labelKey propertiesMovietitle, released, imdbIdGenrenameActorname, born, imdbIdDirectorname, born, imdbIdUsername

Relationship typeKey propertiesIN_GENREACTED_INroleDIRECTEDRATEDrating || timestamp

Let’s count the number of these different concepts:

## Node types and countscypher(  graph,  "  MATCH (n)  RETURN labels(n) AS label, count(n) AS n  ORDER BY n DESC") |>  as_tibble() |>  ## filtering out technical nodes  filter(label %notin% c("_Bloom_Perspective_", "_Bloom_Scene_", ""))
# A tibble: 6 × 2  label                           n  <chr>                       <int>1 Actor || Person             149562 Movie                        91253 Director || Person           36044 User                          6715 Actor || Director || Person   4876 Genre                          20
## Relationship types and countscypher(  graph,  "  MATCH ()-[r]->()  RETURN type(r) AS type, count(r) AS n  ORDER BY n DESC") |>  as_tibble() |>  ## filtering out technical relationships  filter(type %notin% c("_Bloom_HAS_SCENE_"))
# A tibble: 4 × 2  type          n  <chr>     <int>1 RATED    1000042 ACTED_IN  359103 IN_GENRE  203404 DIRECTED  10007

5 Querying with Cypher

5.1 Top prolific actors

cypher(  graph,  "  MATCH (p:Person)-[:ACTED_IN]->(m:Movie)  RETURN p.name AS actor, count(m) AS movies  ORDER BY movies DESC  LIMIT 10") |>  as_tibble()
# A tibble: 10 × 2   actor             movies   <chr>              <int> 1 Robert De Niro        56 2 Bruce Willis          49 3 Samuel L. Jackson     45 4 Nicolas Cage          45 5 Michael Caine         40 6 Clint Eastwood        40 7 Tom Hanks             38 8 John Cusack           38 9 Morgan Freeman        3810 Gene Hackman          38

5.2 Movies and their directors

cypher(  graph,  "  MATCH (d:Person)-[:DIRECTED]->(m:Movie)  RETURN m.title AS movie, m.released as released, d.name AS director  ORDER BY m.released IS NOT NULL DESC, m.released DESC  LIMIT 10") |>  as_tibble()
# A tibble: 10 × 3   movie         released   director               <chr>         <chr>      <chr>                1 Solace        2016-09-02 "Afonso Poyart"      2 Ben-hur       2016-08-12 "Timur Bekmambetov"  3 Rustom        2016-08-12 "Tinu Suresh Desai"  4 Mohenjo Daro  2016-08-12 "Ashutosh Gowariker" 5 Suicide Squad 2016-08-05 "David Ayer"         6 Shin Godzilla 2016-07-29 "Hideaki Anno"       7 Shin Godzilla 2016-07-29 " Shinji Higuchi"    8 Jason Bourne  2016-07-29 "Paul Greengrass"    9 Star Trek 3   2016-07-22 "Justin Lin"        10 Ghostbusters  2016-07-15 "Paul Feig"         

5.3 Parameterised queries

neo2R supports named parameters, keeping queries safe from injection and easy to reuse:

## Find all co-stars of a given actorcypher(  graph,  "  MATCH (a:Person {name: $actor})-[:ACTED_IN]->(m:Movie)<-[:ACTED_IN]-(co:Person)  RETURN DISTINCT co.name AS co_star, m.title AS shared_movie  ORDER BY co_star  ",  parameters = list(actor = "Tom Hanks")) |>  as_tibble()
# A tibble: 114 × 2   co_star            shared_movie           <chr>              <chr>                1 Adrian Zmed        Bachelor Party       2 Alexander Godunov  Money Pit, The       3 Amy Adams          Charlie Wilson's War 4 Annie Rose Buckley Saving Mr. Banks     5 Audrey Tautou      Da Vinci Code, The   6 Ayelet Zurer       Angels & Demons      7 Barkhad Abdi       Captain Phillips     8 Barkhad Abdirahman Captain Phillips     9 Barry Pepper       Saving Private Ryan 10 Bill Paxton        Apollo 13           # ℹ 104 more rows

6 Network visualisation with visNetwork

The real power of a graph database is visible when you draw the graph. Let’s pull Tom Hanks’s ego network, everyone he has acted alongside, and render it with visNetwork.

6.1 Step 1 — Fetch nodes and edges

## Tom Hanks, his movies, and his co-starshub <- "Tom Hanks"nodes_raw <- cypher(  graph,  "  MATCH (hub:Person {name: $hub})-[hr:ACTED_IN]->(m:Movie)  <-[cr:ACTED_IN]-(co:Person)  RETURN hub.name AS hub, hr.role AS hub_role,  m.title AS movie, m.year AS year,  co.name AS co, cr.role AS co_role  ",  parameters = list(hub = hub)) |>  as_tibble()

6.2 Step 2 — Shape data for visNetwork

visNetwork expects two data frames: nodes (with columns id, label, group, …) and edges (with columns from, to, …).

nodes <- bind_rows(  nodes_raw |>    distinct(      id = hub,      group = "Hub"    ),  nodes_raw |>    distinct(      id = co,      group = "Co-star"    ),  nodes_raw |>    distinct(      id = movie,      group = "Movie",      year    )) |>  distinct() |>  mutate(    title = sprintf(      '<b>%s</b>: %s%s',      group,      id,      ifelse(!is.na(year), sprintf("(%s)", year), "")    ),    shape = ifelse(group == "Movie", "dot", "star"),    size = ifelse(group == "Hub", 30, 18)  ) |>     arrange(id)edges <- bind_rows(  nodes_raw |>    distinct(      from = hub,      to = movie,      role = hub_role    ),  nodes_raw |>    distinct(      from = co,      to = movie,      role = co_role    )) |>  mutate(    title = sprintf('<b>Role</b>: %s', role),    arrows = "to"  )

6.3 Step 3 — Draw the network

visNetwork(nodes, edges) |>  visGroups(    groupname = "hub",    color = list(      background = "#3B82F6",      border = "#1D4ED8",      highlight = "#93C5FD"    )  ) |>  visGroups(    groupname = "movie",    color = list(      background = "#F97316",      border = "#C2410C",      highlight = "#FED7AA"    ),    shape = "square"  ) |>  visGroups(    groupname = "costar",    color = list(      background = "#6B7280",      border = "#374151",      highlight = "#D1D5DB"    )  ) |>  visEdges(    color = list(color = "#CBD5E1", highlight = "#3B82F6"),    width = 1.5  ) |>  visOptions(    highlightNearest = list(enabled = TRUE, degree = 1, hover = TRUE),    nodesIdSelection = TRUE  ) |>  visLayout(randomSeed = 42) |>  visPhysics(    solver = "forceAtlas2Based",    forceAtlas2Based = list(      gravitationalConstant = -60,      springLength = 120,      springConstant = 0.04    )  ) |>  visLegend(position = "right", main = "Node type")
{"x":{"nodes":{"id":["'burbs, The","Adrian Zmed","Alexander Godunov","Amy Adams","Angels & Demons","Annie Rose Buckley","Apollo 13","Audrey Tautou","Ayelet Zurer","Bachelor Party","Barkhad Abdi","Barkhad Abdirahman","Barry Pepper","Big","Bill Paxton","Bonfire of the Vanities","Bonnie Hunt","Bruce Dern","Bruce Willis","Buzz Kilman","Captain Phillips","Carl Weathers","Carrie Fisher","Catch Me If You Can","Catherine Keener","Catherine Zeta-Jones","Charles Durning","Charlie Wilson's War","Chi McBride","Christopher Plummer","Christopher Walken","Cloud Atlas","Colin Farrell","Craig T. Nelson","Da Vinci Code, The","Dabney Coleman","Dan Aykroyd","Daryl Hannah","David Andrews","David Morse","Denzel Washington","Don Rickles","Dragnet","Eddie Deezen","Edward Burns","Elizabeth Perkins","Emma Thompson","Eugene Levy","Eva Marie Saint","Ewan McGregor","Extremely Loud and Incredibly Close","Forrest Gump","From the Earth to the Moon","Gary Sinise","Geena Davis","George Grizzard","Green Mile, The","Greg Kinnear","Halle Berry","Harry Morgan","Hector Elizondo","Hugo Weaving","Ian McKellen","Irma P. Hall","J.K. Simmons","Jackie Gleason","Jean Reno","Jim Broadbent","Jim Varney","Joan Cusack","Joe Versus the Volcano","John Candy","John Goodman","John Heard","Julia Roberts","Kelsey Grammer","Kevin Bacon","Kim Cattrall","Ladykillers, The","Lane Smith","Larry Crowne","League of Their Own, A","Leonardo DiCaprio","Leslie Zemeckis","Lloyd Bridges","Lori Petty","Lori Singer","Madonna","Man with One Red Shoe, The","Mare Winningham","Mark Rydell","Marlon Wayans","Martin Sheen","Maureen Stapleton","Meg Ryan","Melanie Griffith","Michael Clarke Duncan","Michael Conner Humphreys","Money Pit, The","Ned Beatty","Nick Searcy","Nona Gaye","Nothing in Common","Parker Posey","Philadelphia","Philip Seymour Hoffman","Polar Express, The","Punchline","Randall Park","Reginald VelJohnson","Rick Ducommun","Rita Wilson","Robert Loggia","Robert Stack","Roberta Maxwell","Robin Wright","Ross Malinger","Roxana Ortega","Sally Field","Sandra Bullock","Sarah Mahoney","Saving Mr. Banks","Saving Private Ryan","Shelley Long","Sleepless in Seattle","Splash","Stanley Tucci","Stellan Skarsgård","Tawny Kitaen","Terminal, The","Thomas Horn","Tim Allen","Tim Thomerson","Tom Hanks","Tom Sizemore","Toy Story","Toy Story 2","Toy Story 3","Toy Story of Terror","Turner & Hooch","Victor Garber","Volunteers","You've Got Mail","Zoe Caldwell"],"group":["Movie","Co-star","Co-star","Co-star","Movie","Co-star","Movie","Co-star","Co-star","Movie","Co-star","Co-star","Co-star","Movie","Co-star","Movie","Co-star","Co-star","Co-star","Co-star","Movie","Co-star","Co-star","Movie","Co-star","Co-star","Co-star","Movie","Co-star","Co-star","Co-star","Movie","Co-star","Co-star","Movie","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Movie","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Movie","Movie","Movie","Co-star","Co-star","Co-star","Movie","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Movie","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Movie","Co-star","Movie","Movie","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Movie","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Movie","Co-star","Co-star","Co-star","Movie","Co-star","Movie","Co-star","Movie","Movie","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Co-star","Movie","Movie","Co-star","Movie","Movie","Co-star","Co-star","Co-star","Movie","Co-star","Co-star","Co-star","Hub","Co-star","Movie","Movie","Movie","Movie","Movie","Co-star","Movie","Movie","Co-star"],"year":[1989,null,null,null,2009,null,1995,null,null,1984,null,null,null,1988,null,1990,null,null,null,null,2013,null,null,2002,null,null,null,2007,null,null,null,2012,null,null,2006,null,null,null,null,null,null,null,1987,null,null,null,null,null,null,null,2011,1994,1998,null,null,null,1999,null,null,null,null,null,null,null,null,null,null,null,null,null,1990,null,null,null,null,null,null,null,2004,null,2011,1992,null,null,null,null,null,null,1985,null,null,null,null,null,null,null,null,null,1986,null,null,null,1986,null,1993,null,2004,1988,null,null,null,null,null,null,null,null,null,null,null,null,null,2013,1998,null,1993,1984,null,null,null,2004,null,null,null,null,null,1995,1999,2010,2013,1989,null,1985,1998,null],"title":["<b>Movie<\/b>: 'burbs, The(1989)","<b>Co-star<\/b>: Adrian Zmed","<b>Co-star<\/b>: Alexander Godunov","<b>Co-star<\/b>: Amy Adams","<b>Movie<\/b>: Angels & Demons(2009)","<b>Co-star<\/b>: Annie Rose Buckley","<b>Movie<\/b>: Apollo 13(1995)","<b>Co-star<\/b>: Audrey Tautou","<b>Co-star<\/b>: Ayelet Zurer","<b>Movie<\/b>: Bachelor Party(1984)","<b>Co-star<\/b>: Barkhad Abdi","<b>Co-star<\/b>: Barkhad Abdirahman","<b>Co-star<\/b>: Barry Pepper","<b>Movie<\/b>: Big(1988)","<b>Co-star<\/b>: Bill Paxton","<b>Movie<\/b>: Bonfire of the Vanities(1990)","<b>Co-star<\/b>: Bonnie Hunt","<b>Co-star<\/b>: Bruce Dern","<b>Co-star<\/b>: Bruce Willis","<b>Co-star<\/b>: Buzz Kilman","<b>Movie<\/b>: Captain Phillips(2013)","<b>Co-star<\/b>: Carl Weathers","<b>Co-star<\/b>: Carrie Fisher","<b>Movie<\/b>: Catch Me If You Can(2002)","<b>Co-star<\/b>: Catherine Keener","<b>Co-star<\/b>: Catherine Zeta-Jones","<b>Co-star<\/b>: Charles Durning","<b>Movie<\/b>: Charlie Wilson's War(2007)","<b>Co-star<\/b>: Chi McBride","<b>Co-star<\/b>: Christopher Plummer","<b>Co-star<\/b>: Christopher Walken","<b>Movie<\/b>: Cloud Atlas(2012)","<b>Co-star<\/b>: Colin Farrell","<b>Co-star<\/b>: Craig T. Nelson","<b>Movie<\/b>: Da Vinci Code, The(2006)","<b>Co-star<\/b>: Dabney Coleman","<b>Co-star<\/b>: Dan Aykroyd","<b>Co-star<\/b>: Daryl Hannah","<b>Co-star<\/b>: David Andrews","<b>Co-star<\/b>: David Morse","<b>Co-star<\/b>: Denzel Washington","<b>Co-star<\/b>: Don Rickles","<b>Movie<\/b>: Dragnet(1987)","<b>Co-star<\/b>: Eddie Deezen","<b>Co-star<\/b>: Edward Burns","<b>Co-star<\/b>: Elizabeth Perkins","<b>Co-star<\/b>: Emma Thompson","<b>Co-star<\/b>: Eugene Levy","<b>Co-star<\/b>: Eva Marie Saint","<b>Co-star<\/b>: Ewan McGregor","<b>Movie<\/b>: Extremely Loud and Incredibly Close(2011)","<b>Movie<\/b>: Forrest Gump(1994)","<b>Movie<\/b>: From the Earth to the Moon(1998)","<b>Co-star<\/b>: Gary Sinise","<b>Co-star<\/b>: Geena Davis","<b>Co-star<\/b>: George Grizzard","<b>Movie<\/b>: Green Mile, The(1999)","<b>Co-star<\/b>: Greg Kinnear","<b>Co-star<\/b>: Halle Berry","<b>Co-star<\/b>: Harry Morgan","<b>Co-star<\/b>: Hector Elizondo","<b>Co-star<\/b>: Hugo Weaving","<b>Co-star<\/b>: Ian McKellen","<b>Co-star<\/b>: Irma P. Hall","<b>Co-star<\/b>: J.K. Simmons","<b>Co-star<\/b>: Jackie Gleason","<b>Co-star<\/b>: Jean Reno","<b>Co-star<\/b>: Jim Broadbent","<b>Co-star<\/b>: Jim Varney","<b>Co-star<\/b>: Joan Cusack","<b>Movie<\/b>: Joe Versus the Volcano(1990)","<b>Co-star<\/b>: John Candy","<b>Co-star<\/b>: John Goodman","<b>Co-star<\/b>: John Heard","<b>Co-star<\/b>: Julia Roberts","<b>Co-star<\/b>: Kelsey Grammer","<b>Co-star<\/b>: Kevin Bacon","<b>Co-star<\/b>: Kim Cattrall","<b>Movie<\/b>: Ladykillers, The(2004)","<b>Co-star<\/b>: Lane Smith","<b>Movie<\/b>: Larry Crowne(2011)","<b>Movie<\/b>: League of Their Own, A(1992)","<b>Co-star<\/b>: Leonardo DiCaprio","<b>Co-star<\/b>: Leslie Zemeckis","<b>Co-star<\/b>: Lloyd Bridges","<b>Co-star<\/b>: Lori Petty","<b>Co-star<\/b>: Lori Singer","<b>Co-star<\/b>: Madonna","<b>Movie<\/b>: Man with One Red Shoe, The(1985)","<b>Co-star<\/b>: Mare Winningham","<b>Co-star<\/b>: Mark Rydell","<b>Co-star<\/b>: Marlon Wayans","<b>Co-star<\/b>: Martin Sheen","<b>Co-star<\/b>: Maureen Stapleton","<b>Co-star<\/b>: Meg Ryan","<b>Co-star<\/b>: Melanie Griffith","<b>Co-star<\/b>: Michael Clarke Duncan","<b>Co-star<\/b>: Michael Conner Humphreys","<b>Movie<\/b>: Money Pit, The(1986)","<b>Co-star<\/b>: Ned Beatty","<b>Co-star<\/b>: Nick Searcy","<b>Co-star<\/b>: Nona Gaye","<b>Movie<\/b>: Nothing in Common(1986)","<b>Co-star<\/b>: Parker Posey","<b>Movie<\/b>: Philadelphia(1993)","<b>Co-star<\/b>: Philip Seymour Hoffman","<b>Movie<\/b>: Polar Express, The(2004)","<b>Movie<\/b>: Punchline(1988)","<b>Co-star<\/b>: Randall Park","<b>Co-star<\/b>: Reginald VelJohnson","<b>Co-star<\/b>: Rick Ducommun","<b>Co-star<\/b>: Rita Wilson","<b>Co-star<\/b>: Robert Loggia","<b>Co-star<\/b>: Robert Stack","<b>Co-star<\/b>: Roberta Maxwell","<b>Co-star<\/b>: Robin Wright","<b>Co-star<\/b>: Ross Malinger","<b>Co-star<\/b>: Roxana Ortega","<b>Co-star<\/b>: Sally Field","<b>Co-star<\/b>: Sandra Bullock","<b>Co-star<\/b>: Sarah Mahoney","<b>Movie<\/b>: Saving Mr. Banks(2013)","<b>Movie<\/b>: Saving Private Ryan(1998)","<b>Co-star<\/b>: Shelley Long","<b>Movie<\/b>: Sleepless in Seattle(1993)","<b>Movie<\/b>: Splash(1984)","<b>Co-star<\/b>: Stanley Tucci","<b>Co-star<\/b>: Stellan Skarsgård","<b>Co-star<\/b>: Tawny Kitaen","<b>Movie<\/b>: Terminal, The(2004)","<b>Co-star<\/b>: Thomas Horn","<b>Co-star<\/b>: Tim Allen","<b>Co-star<\/b>: Tim Thomerson","<b>Hub<\/b>: Tom Hanks","<b>Co-star<\/b>: Tom Sizemore","<b>Movie<\/b>: Toy Story(1995)","<b>Movie<\/b>: Toy Story 2(1999)","<b>Movie<\/b>: Toy Story 3(2010)","<b>Movie<\/b>: Toy Story of Terror(2013)","<b>Movie<\/b>: Turner & Hooch(1989)","<b>Co-star<\/b>: Victor Garber","<b>Movie<\/b>: Volunteers(1985)","<b>Movie<\/b>: You've Got Mail(1998)","<b>Co-star<\/b>: Zoe Caldwell"],"shape":["dot","star","star","star","dot","star","dot","star","star","dot","star","star","star","dot","star","dot","star","star","star","star","dot","star","star","dot","star","star","star","dot","star","star","star","dot","star","star","dot","star","star","star","star","star","star","star","dot","star","star","star","star","star","star","star","dot","dot","dot","star","star","star","dot","star","star","star","star","star","star","star","star","star","star","star","star","star","dot","star","star","star","star","star","star","star","dot","star","dot","dot","star","star","star","star","star","star","dot","star","star","star","star","star","star","star","star","star","dot","star","star","star","dot","star","dot","star","dot","dot","star","star","star","star","star","star","star","star","star","star","star","star","star","dot","dot","star","dot","dot","star","star","star","dot","star","star","star","star","star","dot","dot","dot","dot","dot","star","dot","dot","star"],"size":[18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,30,18,18,18,18,18,18,18,18,18,18],"label":["'burbs, The","Adrian Zmed","Alexander Godunov","Amy Adams","Angels & Demons","Annie Rose Buckley","Apollo 13","Audrey Tautou","Ayelet Zurer","Bachelor Party","Barkhad Abdi","Barkhad Abdirahman","Barry Pepper","Big","Bill Paxton","Bonfire of the Vanities","Bonnie Hunt","Bruce Dern","Bruce Willis","Buzz Kilman","Captain Phillips","Carl Weathers","Carrie Fisher","Catch Me If You Can","Catherine Keener","Catherine Zeta-Jones","Charles Durning","Charlie Wilson's War","Chi McBride","Christopher Plummer","Christopher Walken","Cloud Atlas","Colin Farrell","Craig T. Nelson","Da Vinci Code, The","Dabney Coleman","Dan Aykroyd","Daryl Hannah","David Andrews","David Morse","Denzel Washington","Don Rickles","Dragnet","Eddie Deezen","Edward Burns","Elizabeth Perkins","Emma Thompson","Eugene Levy","Eva Marie Saint","Ewan McGregor","Extremely Loud and Incredibly Close","Forrest Gump","From the Earth to the Moon","Gary Sinise","Geena Davis","George Grizzard","Green Mile, The","Greg Kinnear","Halle Berry","Harry Morgan","Hector Elizondo","Hugo Weaving","Ian McKellen","Irma P. Hall","J.K. Simmons","Jackie Gleason","Jean Reno","Jim Broadbent","Jim Varney","Joan Cusack","Joe Versus the Volcano","John Candy","John Goodman","John Heard","Julia Roberts","Kelsey Grammer","Kevin Bacon","Kim Cattrall","Ladykillers, The","Lane Smith","Larry Crowne","League of Their Own, A","Leonardo DiCaprio","Leslie Zemeckis","Lloyd Bridges","Lori Petty","Lori Singer","Madonna","Man with One Red Shoe, The","Mare Winningham","Mark Rydell","Marlon Wayans","Martin Sheen","Maureen Stapleton","Meg Ryan","Melanie Griffith","Michael Clarke Duncan","Michael Conner Humphreys","Money Pit, The","Ned Beatty","Nick Searcy","Nona Gaye","Nothing in Common","Parker Posey","Philadelphia","Philip Seymour Hoffman","Polar Express, The","Punchline","Randall Park","Reginald VelJohnson","Rick Ducommun","Rita Wilson","Robert Loggia","Robert Stack","Roberta Maxwell","Robin Wright","Ross Malinger","Roxana Ortega","Sally Field","Sandra Bullock","Sarah Mahoney","Saving Mr. Banks","Saving Private Ryan","Shelley Long","Sleepless in Seattle","Splash","Stanley Tucci","Stellan Skarsgård","Tawny Kitaen","Terminal, The","Thomas Horn","Tim Allen","Tim Thomerson","Tom Hanks","Tom Sizemore","Toy Story","Toy Story 2","Toy Story 3","Toy Story of Terror","Turner & Hooch","Victor Garber","Volunteers","You've Got Mail","Zoe Caldwell"]},"edges":{"from":["Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Tom Hanks","Sally Field","Mark Rydell","John Goodman","Martin Sheen","Leonardo DiCaprio","Christopher Walken","Dan Aykroyd","Harry Morgan","Christopher Plummer","Colin Farrell","Emma Thompson","Annie Rose Buckley","Tawny Kitaen","Adrian Zmed","George Grizzard","Tim Thomerson","Rita Wilson","John Candy","Dabney Coleman","Lori Singer","Charles Durning","Eugene Levy","John Candy","Daryl Hannah","John Heard","Elizabeth Perkins","Robert Loggia","Hector Elizondo","Eva Marie Saint","Jackie Gleason","Alexander Godunov","Shelley Long","Maureen Stapleton","Tim Allen","Joan Cusack","Carl Weathers","Barkhad Abdirahman","Catherine Keener","Barkhad Abdi","Sarah Mahoney","Roxana Ortega","Randall Park","Hugo Weaving","Jim Broadbent","Halle Berry","Stellan Skarsgård","Ayelet Zurer","Ewan McGregor","Thomas Horn","Zoe Caldwell","Sandra Bullock","Amy Adams","Philip Seymour Hoffman","Julia Roberts","Tim Allen","Ned Beatty","Joan Cusack","David Andrews","Lane Smith","Nick Searcy","Bonnie Hunt","Michael Clarke Duncan","David Morse","Tom Sizemore","Edward Burns","Barry Pepper","Kelsey Grammer","Tim Allen","Joan Cusack","Bill Paxton","Kevin Bacon","Gary Sinise","Jim Varney","Tim Allen","Don Rickles","Geena Davis","Lori Petty","Madonna","Robin Wright","Sally Field","Michael Conner Humphreys","Roberta Maxwell","Denzel Washington","Buzz Kilman","Victor Garber","Rita Wilson","Ross Malinger","Craig T. Nelson","Reginald VelJohnson","Mare Winningham","Rick Ducommun","Carrie Fisher","Bruce Dern","Meg Ryan","Robert Stack","Lloyd Bridges","Bruce Willis","Melanie Griffith","Kim Cattrall","Catherine Zeta-Jones","Chi McBride","Stanley Tucci","Audrey Tautou","Jean Reno","Ian McKellen","Eddie Deezen","Leslie Zemeckis","Nona Gaye","Irma P. Hall","Marlon Wayans","J.K. Simmons","Meg Ryan","Parker Posey","Greg Kinnear"],"to":["Punchline","Catch Me If You Can","Dragnet","Saving Mr. Banks","Bachelor Party","Volunteers","Man with One Red Shoe, The","Splash","Big","Nothing in Common","Money Pit, The","Toy Story of Terror","Captain Phillips","Larry Crowne","Cloud Atlas","Angels & Demons","Extremely Loud and Incredibly Close","Charlie Wilson's War","Toy Story 3","From the Earth to the Moon","Green Mile, The","Saving Private Ryan","Toy Story 2","Apollo 13","Toy Story","League of Their Own, A","Forrest Gump","Philadelphia","Sleepless in Seattle","Turner & Hooch","'burbs, The","Joe Versus the Volcano","Bonfire of the Vanities","Terminal, The","Da Vinci Code, The","Polar Express, The","Ladykillers, The","You've Got Mail","Punchline","Punchline","Punchline","Catch Me If You Can","Catch Me If You Can","Catch Me If You Can","Dragnet","Dragnet","Dragnet","Saving Mr. Banks","Saving Mr. Banks","Saving Mr. Banks","Bachelor Party","Bachelor Party","Bachelor Party","Volunteers","Volunteers","Volunteers","Man with One Red Shoe, The","Man with One Red Shoe, The","Man with One Red Shoe, The","Splash","Splash","Splash","Big","Big","Big","Nothing in Common","Nothing in Common","Nothing in Common","Money Pit, The","Money Pit, The","Money Pit, The","Toy Story of Terror","Toy Story of Terror","Toy Story of Terror","Captain Phillips","Captain Phillips","Captain Phillips","Larry Crowne","Larry Crowne","Larry Crowne","Cloud Atlas","Cloud Atlas","Cloud Atlas","Angels & Demons","Angels & Demons","Angels & Demons","Extremely Loud and Incredibly Close","Extremely Loud and Incredibly Close","Extremely Loud and Incredibly Close","Charlie Wilson's War","Charlie Wilson's War","Charlie Wilson's War","Toy Story 3","Toy Story 3","Toy Story 3","From the Earth to the Moon","From the Earth to the Moon","From the Earth to the Moon","Green Mile, The","Green Mile, The","Green Mile, The","Saving Private Ryan","Saving Private Ryan","Saving Private Ryan","Toy Story 2","Toy Story 2","Toy Story 2","Apollo 13","Apollo 13","Apollo 13","Toy Story","Toy Story","Toy Story","League of Their Own, A","League of Their Own, A","League of Their Own, A","Forrest Gump","Forrest Gump","Forrest Gump","Philadelphia","Philadelphia","Philadelphia","Sleepless in Seattle","Sleepless in Seattle","Sleepless in Seattle","Turner & Hooch","Turner & Hooch","Turner & Hooch","'burbs, The","'burbs, The","'burbs, The","Joe Versus the Volcano","Joe Versus the Volcano","Joe Versus the Volcano","Bonfire of the Vanities","Bonfire of the Vanities","Bonfire of the Vanities","Terminal, The","Terminal, The","Terminal, The","Da Vinci Code, The","Da Vinci Code, The","Da Vinci Code, The","Polar Express, The","Polar Express, The","Polar Express, The","Ladykillers, The","Ladykillers, The","Ladykillers, The","You've Got Mail","You've Got Mail","You've Got Mail"],"role":["Steven Gold","Carl Hanratty","Pep Streebeck","Walt Disney","Rick Gassko","Lawrence Whatley Bourne III","Richard Harlan Drew","Allen Bauer","Joshua \"Josh\" Baskin","David Basner","Walter Fielding, Jr.","Woody (Voice)","Captain Richard Phillips","Larry Crowne","Dr. Henry Goose / Hotel Manager / Isaac Sachs / Dermot Hoggins / Cavendish Look-a-Like Actor / Zachry","Robert Langdon","Thomas Schell","Charlie Wilson","Woody (voice)",null,"Paul Edgecomb","Captain John H. Miller","Woody (voice)","Jim Lovell","Woody (voice)","Jimmy Dugan - Manager","Forrest Gump","Andrew Beckett","Sam Baldwin","Scott Turner","Ray Peterson","Joe Banks","Sherman McCoy","Viktor Navorski","Robert Langdon","Hero Boy / Father / Conductor / Hobo / Scrooge / Santa Claus (voice)","Professor G.H. Dorr","Joe Fox","Lilah Krytsick","Romeo","John Krytsick","Roger Strong","Frank Abagnale Jr.","Frank Abagnale","Sgt. Joe Friday","Captain Gannon","Reverend Jonathan Whirley","Travers Robert Goff","P.L. Travers","Ginty","Debbie Thompson","Jay O'Neill","Ed Thompson","John Reynolds","Beth Wexler","Tom Tuttle","Cooper","Maddy","Ross","Walter Kornbluth","Freddie Bauer","Madison","Paul","Susan","MacMillan",null,"Lorraine Basner","Max Basner","Max Beissart","Anna Crowley","Estelle","Buzz Lightyear (Voice)","Jessie (Voice)","Combat Carl / Combat Carl Jr. (Voice)","Bilal","Andrea Phillips","Muse","Samantha","Alvarez","Trainee Wong","Haskell Moore / Tadeusz Kesselring / Bill Smoke / Nurse Noakes / Boardman Mephi / Old Georgie","Captain Molyneux / Vyvyan Ayrs / Timothy Cavendish / Korean Musician / Prescient 2","Native Woman / Jocasta Ayrs / Luisa Rey / Indian Party Guest / Ovid / Meronym","Commander Richter","Vittoria Vetra","Camerlengo Patrick McKenna","Oskar Schell","Oskar's Grandmother","Linda Schell","Bonnie Bach","Gust Avrakotos","Joanne Herring","Buzz Lightyear (voice)","Lotso (voice)","Jessie the Yodeling Cowgirl (voice)",null,null,null,"Jan Edgecomb","John Coffey","Brutus \"Brutal\" Howell","Technical Sergeant Michael Horvath","Private Richard Reiben","Private Daniel Jackson","Stinky Pete the Prospector (voice)","Buzz Lightyear (voice)","Jessie the Yodeling Cowgirl (voice)","Fred Haise","Jack Swigert","Ken Mattingly","Slinky Dog (voice)","Buzz Lightyear (voice)","Mr. Potato Head (voice)","Dottie Hinson - Catcher","Kit Keller - Pitcher","Mae Mordabito - Center Field","Jenny Curran","Mrs. Gump","Young Forrest Gump","Judge Tate","Joe Miller","Crutches","Greg","Suzy","Jonah Baldwin","Howard Hyde","Det. David Sutton","Emily Carson","Art Weingartner","Carol Peterson","Lt. Mark Rumsfield","DeDe/Angelica Graynamore/Patricia Graynamore","Dr. Ellison","Samuel Harvey Graynamore","Peter Fallow","Maria Ruskin","Judy McCoy","Amelia Warren","Mulroy","Frank Dixon","Sophie Neveu","Captain Bezu Fache","Sir Leigh Teabing","Know-It-All (voice)","Sister Sarah / Mother (voice)","Hero Girl (voice)","Marva Munson","Gawain MacSam","Garth Pancake","Kathleen Kelly","Patricia Eden","Frank Navasky"],"title":["<b>Role<\/b>: Steven Gold","<b>Role<\/b>: Carl Hanratty","<b>Role<\/b>: Pep Streebeck","<b>Role<\/b>: Walt Disney","<b>Role<\/b>: Rick Gassko","<b>Role<\/b>: Lawrence Whatley Bourne III","<b>Role<\/b>: Richard Harlan Drew","<b>Role<\/b>: Allen Bauer","<b>Role<\/b>: Joshua \"Josh\" Baskin","<b>Role<\/b>: David Basner","<b>Role<\/b>: Walter Fielding, Jr.","<b>Role<\/b>: Woody (Voice)","<b>Role<\/b>: Captain Richard Phillips","<b>Role<\/b>: Larry Crowne","<b>Role<\/b>: Dr. Henry Goose / Hotel Manager / Isaac Sachs / Dermot Hoggins / Cavendish Look-a-Like Actor / Zachry","<b>Role<\/b>: Robert Langdon","<b>Role<\/b>: Thomas Schell","<b>Role<\/b>: Charlie Wilson","<b>Role<\/b>: Woody (voice)","<b>Role<\/b>: NA","<b>Role<\/b>: Paul Edgecomb","<b>Role<\/b>: Captain John H. Miller","<b>Role<\/b>: Woody (voice)","<b>Role<\/b>: Jim Lovell","<b>Role<\/b>: Woody (voice)","<b>Role<\/b>: Jimmy Dugan - Manager","<b>Role<\/b>: Forrest Gump","<b>Role<\/b>: Andrew Beckett","<b>Role<\/b>: Sam Baldwin","<b>Role<\/b>: Scott Turner","<b>Role<\/b>: Ray Peterson","<b>Role<\/b>: Joe Banks","<b>Role<\/b>: Sherman McCoy","<b>Role<\/b>: Viktor Navorski","<b>Role<\/b>: Robert Langdon","<b>Role<\/b>: Hero Boy / Father / Conductor / Hobo / Scrooge / Santa Claus (voice)","<b>Role<\/b>: Professor G.H. Dorr","<b>Role<\/b>: Joe Fox","<b>Role<\/b>: Lilah Krytsick","<b>Role<\/b>: Romeo","<b>Role<\/b>: John Krytsick","<b>Role<\/b>: Roger Strong","<b>Role<\/b>: Frank Abagnale Jr.","<b>Role<\/b>: Frank Abagnale","<b>Role<\/b>: Sgt. Joe Friday","<b>Role<\/b>: Captain Gannon","<b>Role<\/b>: Reverend Jonathan Whirley","<b>Role<\/b>: Travers Robert Goff","<b>Role<\/b>: P.L. Travers","<b>Role<\/b>: Ginty","<b>Role<\/b>: Debbie Thompson","<b>Role<\/b>: Jay O'Neill","<b>Role<\/b>: Ed Thompson","<b>Role<\/b>: John Reynolds","<b>Role<\/b>: Beth Wexler","<b>Role<\/b>: Tom Tuttle","<b>Role<\/b>: Cooper","<b>Role<\/b>: Maddy","<b>Role<\/b>: Ross","<b>Role<\/b>: Walter Kornbluth","<b>Role<\/b>: Freddie Bauer","<b>Role<\/b>: Madison","<b>Role<\/b>: Paul","<b>Role<\/b>: Susan","<b>Role<\/b>: MacMillan","<b>Role<\/b>: NA","<b>Role<\/b>: Lorraine Basner","<b>Role<\/b>: Max Basner","<b>Role<\/b>: Max Beissart","<b>Role<\/b>: Anna Crowley","<b>Role<\/b>: Estelle","<b>Role<\/b>: Buzz Lightyear (Voice)","<b>Role<\/b>: Jessie (Voice)","<b>Role<\/b>: Combat Carl / Combat Carl Jr. (Voice)","<b>Role<\/b>: Bilal","<b>Role<\/b>: Andrea Phillips","<b>Role<\/b>: Muse","<b>Role<\/b>: Samantha","<b>Role<\/b>: Alvarez","<b>Role<\/b>: Trainee Wong","<b>Role<\/b>: Haskell Moore / Tadeusz Kesselring / Bill Smoke / Nurse Noakes / Boardman Mephi / Old Georgie","<b>Role<\/b>: Captain Molyneux / Vyvyan Ayrs / Timothy Cavendish / Korean Musician / Prescient 2","<b>Role<\/b>: Native Woman / Jocasta Ayrs / Luisa Rey / Indian Party Guest / Ovid / Meronym","<b>Role<\/b>: Commander Richter","<b>Role<\/b>: Vittoria Vetra","<b>Role<\/b>: Camerlengo Patrick McKenna","<b>Role<\/b>: Oskar Schell","<b>Role<\/b>: Oskar's Grandmother","<b>Role<\/b>: Linda Schell","<b>Role<\/b>: Bonnie Bach","<b>Role<\/b>: Gust Avrakotos","<b>Role<\/b>: Joanne Herring","<b>Role<\/b>: Buzz Lightyear (voice)","<b>Role<\/b>: Lotso (voice)","<b>Role<\/b>: Jessie the Yodeling Cowgirl (voice)","<b>Role<\/b>: NA","<b>Role<\/b>: NA","<b>Role<\/b>: NA","<b>Role<\/b>: Jan Edgecomb","<b>Role<\/b>: John Coffey","<b>Role<\/b>: Brutus \"Brutal\" Howell","<b>Role<\/b>: Technical Sergeant Michael Horvath","<b>Role<\/b>: Private Richard Reiben","<b>Role<\/b>: Private Daniel Jackson","<b>Role<\/b>: Stinky Pete the Prospector (voice)","<b>Role<\/b>: Buzz Lightyear (voice)","<b>Role<\/b>: Jessie the Yodeling Cowgirl (voice)","<b>Role<\/b>: Fred Haise","<b>Role<\/b>: Jack Swigert","<b>Role<\/b>: Ken Mattingly","<b>Role<\/b>: Slinky Dog (voice)","<b>Role<\/b>: Buzz Lightyear (voice)","<b>Role<\/b>: Mr. Potato Head (voice)","<b>Role<\/b>: Dottie Hinson - Catcher","<b>Role<\/b>: Kit Keller - Pitcher","<b>Role<\/b>: Mae Mordabito - Center Field","<b>Role<\/b>: Jenny Curran","<b>Role<\/b>: Mrs. Gump","<b>Role<\/b>: Young Forrest Gump","<b>Role<\/b>: Judge Tate","<b>Role<\/b>: Joe Miller","<b>Role<\/b>: Crutches","<b>Role<\/b>: Greg","<b>Role<\/b>: Suzy","<b>Role<\/b>: Jonah Baldwin","<b>Role<\/b>: Howard Hyde","<b>Role<\/b>: Det. David Sutton","<b>Role<\/b>: Emily Carson","<b>Role<\/b>: Art Weingartner","<b>Role<\/b>: Carol Peterson","<b>Role<\/b>: Lt. Mark Rumsfield","<b>Role<\/b>: DeDe/Angelica Graynamore/Patricia Graynamore","<b>Role<\/b>: Dr. Ellison","<b>Role<\/b>: Samuel Harvey Graynamore","<b>Role<\/b>: Peter Fallow","<b>Role<\/b>: Maria Ruskin","<b>Role<\/b>: Judy McCoy","<b>Role<\/b>: Amelia Warren","<b>Role<\/b>: Mulroy","<b>Role<\/b>: Frank Dixon","<b>Role<\/b>: Sophie Neveu","<b>Role<\/b>: Captain Bezu Fache","<b>Role<\/b>: Sir Leigh Teabing","<b>Role<\/b>: Know-It-All (voice)","<b>Role<\/b>: Sister Sarah / Mother (voice)","<b>Role<\/b>: Hero Girl (voice)","<b>Role<\/b>: Marva Munson","<b>Role<\/b>: Gawain MacSam","<b>Role<\/b>: Garth Pancake","<b>Role<\/b>: Kathleen Kelly","<b>Role<\/b>: Patricia Eden","<b>Role<\/b>: Frank Navasky"],"arrows":["to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to","to"]},"nodesToDataframe":true,"edgesToDataframe":true,"options":{"width":"100%","height":"100%","nodes":{"shape":"dot"},"manipulation":{"enabled":false},"groups":{"hub":{"color":{"background":"#3B82F6","border":"#1D4ED8","highlight":"#93C5FD"}},"movie":{"color":{"background":"#F97316","border":"#C2410C","highlight":"#FED7AA"},"shape":"square"},"useDefaultGroups":true,"costar":{"color":{"background":"#6B7280","border":"#374151","highlight":"#D1D5DB"}}},"edges":{"width":1.5,"color":{"color":"#CBD5E1","highlight":"#3B82F6"}},"interaction":{"hover":true,"zoomSpeed":1},"layout":{"randomSeed":42},"physics":{"solver":"forceAtlas2Based","forceAtlas2Based":{"gravitationalConstant":-60,"springLength":120,"springConstant":0.04}}},"groups":["Movie","Co-star","Hub"],"width":null,"height":null,"idselection":{"enabled":true,"style":"width: 150px; height: 26px","useLabels":true,"main":"Select by id"},"byselection":{"enabled":false,"style":"width: 150px; height: 26px","multiple":false,"hideColor":"rgba(200,200,200,0.5)","highlight":false},"main":null,"submain":null,"footer":null,"background":"rgba(0, 0, 0, 0)","tooltipStay":300,"tooltipStyle":"position: fixed;visibility:hidden;padding: 5px;white-space: nowrap;font-family: verdana;font-size:14px;font-color:#000000;background-color: #f5f4ed;-moz-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px;border: 1px solid #808074;box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);","highlight":{"enabled":true,"hoverNearest":true,"degree":1,"algorithm":"all","hideColor":"rgba(200,200,200,0.5)","labelOnly":true},"collapse":{"enabled":false,"fit":false,"resetHighlight":true,"clusterOptions":null,"keepCoord":true,"labelSuffix":"(cluster)"},"legend":{"width":0.2,"useGroups":true,"position":"right","ncol":1,"stepX":100,"stepY":100,"zoom":true,"main":{"text":"Node type","style":"font-family:Georgia, Times New Roman, Times, serif;font-weight:bold;font-size:14px;text-align:center;"}}},"evals":[],"jsHooks":[]}

Hover over any node to see its label. Use the Select by id dropdown or a node to highlight movies shared with Tom Hanks.

7 Conclusion

neo2R 3.0.0 removes the last friction point for R users who want to work with Neo4j Aura: a single startGraph() call now handles cloud and local instances uniformly, the httr2 backend gives reliable retries and clean error handling, and the Cypher query interface remains exactly as it was.

7.1 Further reading

To leave a comment for the author, please follow the link and comment on their blog: Patrice Godard.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Continue reading: Querying Neo4j Aura from R with neo2R