Introdução à Biblioteca GDS
Obtenha uma visão geral da biblioteca Neo4j Graph Data Science, dos seus recursos e de como ela amplia as capacidades analíticas do Neo4j.
Introdução à Biblioteca GDS é uma aula grátis de Neo4j Graph Database Fundamentals no CoddyKit. Esta é a aula 1 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de Neo4j Graph Database Fundamentals, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de Neo4j Graph Database Fundamentals inclui 4 aulas no total.
Partes desta aula ainda não foram traduzidas e aparecem em inglês.
Welcome to Neo4j GDS!
Hello! In this lesson, we'll dive into the Neo4j Graph Data Science (GDS) library. It's a powerful toolkit for advanced graph analytics.
GDS helps you uncover hidden insights and patterns in your graph data that are difficult to find with standard queries alone.
What is the GDS Library?
The GDS library is a collection of optimized graph algorithms and machine learning pipelines built specifically for Neo4j.
- It's designed for scale and performance.
- It works directly with your graph data.
- It helps you answer complex questions about relationships and structures.
Why Use GDS?
While Cypher is great for querying, some analytical tasks require more computational power and specific algorithms. GDS steps in here.
It's used for things like identifying influential nodes, detecting communities, finding shortest paths, and even for feature engineering in machine learning.
Core GDS Concept: Graph Projection
Before running most GDS algorithms, you need to project your graph. This means creating an in-memory representation of a subset of your graph data.
Why? Algorithms run much faster on these optimized in-memory structures, especially for large datasets.
How Projection Works
When you project a graph, GDS identifies specific nodes and relationships from your Neo4j database and loads them into its own optimized memory space.
You define which node labels and which relationship types to include in your projection.
Simple Graph Projection Example
Let's see a basic example of projecting a graph. This Cypher command projects all Person nodes and their KNOWS relationships into an in-memory graph named 'myGraph'.
CALL gds.graph.project(
'myGraph',
'Person',
'KNOWS'
)Graph Catalog
Projected graphs are stored in the Graph Catalog. You can list them, manage them, and refer to them by name when running algorithms.
This catalog helps organize your in-memory graphs, making it easy to reuse them for different analyses.
GDS Algorithm Categories
The GDS library contains many algorithms, broadly categorized:
- Pathfinding: Finding shortest paths or all paths (e.g., A*, Dijkstra).
- Centrality: Identifying important nodes (e.g., PageRank, Betweenness Centrality).
- Community Detection: Grouping similar nodes (e.g., Louvain, Label Propagation).
- Link Prediction: Predicting missing relationships.
GDS vs. Standard Cypher Queries
While Cypher can do basic graph traversals, GDS is optimized for iterative, global graph computations.
- Cypher: Best for specific pattern matching, CRUD operations, small traversals.
- GDS: Best for complex analytical tasks, large-scale graph analysis, machine learning prep.
They complement each other beautifully!
Quick Check on GDS
What is the primary purpose of 'graph projection' in the Neo4j GDS library?
GDS Intro Recap
Great job! You've just learned about the Neo4j Graph Data Science library.
- GDS is a powerful tool for advanced graph analytics.
- It uses graph projection to create efficient in-memory graphs.
- It offers various algorithm categories like Pathfinding, Centrality, and Community Detection.
Next, we'll explore how to run these algorithms!
Perguntas Frequentes
A aula “Introdução à Biblioteca GDS” é grátis?
Sim — o texto completo de “Introdução à Biblioteca GDS” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de Neo4j Graph Database Fundamentals, atualize para CoddyKit PRO. O curso de Neo4j Graph Database Fundamentals inclui 4 aulas no total.
O que vou aprender em “Introdução à Biblioteca GDS”?
Obtenha uma visão geral da biblioteca Neo4j Graph Data Science, dos seus recursos e de como ela amplia as capacidades analíticas do Neo4j. Você pratica Neo4j Graph Database Fundamentals com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.
Preciso ter experiência prévia para começar Neo4j Graph Database Fundamentals?
Nenhuma experiência prévia é necessária. Neo4j Graph Database Fundamentals no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 1 de 4.
Quanto tempo leva a aula “Introdução à Biblioteca GDS”?
A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.
Posso escrever e executar código nesta aula de Neo4j Graph Database Fundamentals?
Sim. Cada aula de Neo4j Graph Database Fundamentals inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.
Todas as aulas deste curso
- Introdução à Biblioteca GDS
- Executando Algoritmos GDS
- Pipelines GDS e Aprendizado de Máquina
- Incorporações de Grafos com GDS