What is the current approach to getting a Graphx graph from Neo4j?

45 views Asked by At

I understand that the previous (now deprecated) Neo4j Spark Connector allowed for the generation of Spark Graphs and GraphFrames using the corresponding methods of the org.neo4j.spark.Neo4j class. With the Neo4j class gone, the only examples I found using the new approach generate DataFrames based on something like:

spark.read.format("org.neo4j.spark.DataSource")
    .option("url", "bolt://localhost:7687")
    .option("query", "...")
    .load()

How do I get Graph instances directly using the "Neo4j Connector for Apache Spark v4.0.0"?

0

There are 0 answers