Reader small image

You're reading from  Graph Data Science with Neo4j

Product typeBook
Published inJan 2023
Reading LevelIntermediate
PublisherPackt
ISBN-139781804612743
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Estelle Scifo
Estelle Scifo
author image
Estelle Scifo

Estelle Scifo possesses over 7 years experience as a data scientist, after receiving her PhD from the Laboratoire de lAcclrateur Linaire, Orsay (affiliated to CERN in Geneva). As a Neo4j certified professional, she uses graph databases on a daily basis and takes full advantage of its features to build efficient machine learning models out of this data. In addition, she is also a data science mentor to guide newcomers into the field. Her domain expertise and deep insight into the perspective of the beginners needs make her an excellent teacher.
Read more about Estelle Scifo

Right arrow

Introducing the GDS Python client

The previous chapters introduced the Neo4j GDS library. There, you discovered the concepts of projected graphs and the procedures to run specific graph algorithms from Cypher. If you do not have direct access to Neo4j Browser, or if you want to automate your data processing, it might be convenient to be able to use GDS procedures from Python. One possible approach is to use the Neo4j Python driver introduced in a preceding chapter (Chapter 3, Characterizing a Graph Dataset) and write code like this:

# driver instantiation
from neo4j import GraphDatabase
driver = GraphDatabase.driver(
      "bolt://localhost:7687",
      auth=("neo4j", "<PASSWORD>")
)
with driver.session() as s:
     # create projected graph named 'pG'
     s.run("CALL gds.graph.project('pG', 'NodeB',...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Graph Data Science with Neo4j
Published in: Jan 2023Publisher: PacktISBN-13: 9781804612743

Author (1)

author image
Estelle Scifo

Estelle Scifo possesses over 7 years experience as a data scientist, after receiving her PhD from the Laboratoire de lAcclrateur Linaire, Orsay (affiliated to CERN in Geneva). As a Neo4j certified professional, she uses graph databases on a daily basis and takes full advantage of its features to build efficient machine learning models out of this data. In addition, she is also a data science mentor to guide newcomers into the field. Her domain expertise and deep insight into the perspective of the beginners needs make her an excellent teacher.
Read more about Estelle Scifo