Graph database
A graph database is a database system that represents data as entities and their relationships, typically using nodes and edges, and supports queries over that structure.
Graph Algorithms for Data Science
A graph database is a database designed to store and query entities and their relationships directly.
- How it is used
- Supports exploration of highly connected, variable data through relationship-centered queries.
- How deep it goes
- Introduces graph storage and modeling, then defers graph algorithms and machine learning to later milestones.
- Examples
- Uses NASA Lessons Learned records, a Twitter social network, and extracted Jon–WORKS_AT–W3C and Jon–RESIDES–Bahamas triples.
- What you can do after
- Evaluate/understand when relationship-heavy data benefits from graph modeling and connected queries.
Read how Graph Algorithms for Data Science explains graph database →
AI Agents and Applications
A graph database stores entities and relationships as connected data that can be queried by those relationships.
- How it is used
- Supports knowledge-intensive retrieval, agent memory, relationship tracking, planning, inference, and explainable answers.
- How deep it goes
- Defines nodes, edges, triples, and query languages, then sketches LLM-assisted extraction and generation without detailing database operations.
- Examples
- Uses Roberto, InterMilan, and SerieA triples plus a Knowledge Graph RAG pipeline and schema-constrained Cypher prompt.
- What you can do after
- Evaluate graph-backed RAG designs and understand how LLMs extract relationships, generate queries, and synthesize graph results.
Read how AI Agents and Applications explains graph database →
Natural Language Processing in Action, Second Edition
A graph database is a database system that stores entities and their relationships as graph structures for graph-oriented querying and analysis.
- How it is used
- Retrieves and explores connected facts in knowledge graphs through graph-oriented query languages such as SPARQL.
- How deep it goes
- Explains entity identifiers, property identifiers, and connected Wikidata queries, while deferring broader database trade-offs to exercises.
- Examples
- Uses Wikidata queries about Timnit Gebru, a scholarly article, its authors, and NetworkX-to-pandas graph traversal exercises.
- What you can do after
- Operate Wikidata’s REST API and SPARQLWrapper to retrieve entity identifiers, scholarly works, and connected authors.
Read how Natural Language Processing in Action, Second Edition explains graph database →
Data Analysis with LLMs
A graph data management system is software that stores and processes graph data consisting of entities and relationships.
- How it is used
- Supports natural-language question answering by processing graph-specific queries generated from questions.
- How deep it goes
- Defines graph database systems and their role, but does not detail query-language syntax or implementation.
- Examples
- Uses subway stations and connections to illustrate nodes, edges, labels, and properties.
- What you can do after
- Apply it by translating natural-language questions into Cypher, executing queries on a copied database, and checking their accuracy.
Also covered in
- Grokking Data Structures
- Building Specialized AI SystemsIn early access (MEAP)
- Financial AI in Practice
- Java Persistence with Spring Data and Hibernate epub
- Microsoft Azure in Action
- Digital Twins in Action
- Authorization in Action
What to know first
- similarity searchSimilarity search is a retrieval technique that finds or ranks items by their similarity to a query, often by comparing feature or vector representations under a similarity or distance measure.
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- embeddingAn embedding is a numerical vector representation of an item in a feature space, encoding selected properties or relationships for computational tasks such as comparison or retrieval.
- graphA graph is a mathematical structure consisting of vertices and edges that connect pairs of vertices to represent relationships or connections.
Related concepts
- Cypherused by · Cypher is a declarative graph query language for expressing patterns and retrieving, creating, or modifying property-graph data.
- databasekind of · A database is an organized persistent data store, typically managed by software, that supports storing, retrieving, and modifying data.
- NoSQL databasekind of · A NoSQL database is a database system organized primarily around nonrelational data models rather than the traditional relational table model.
Questions about graph database
What is graph database?
A graph database is a database system that represents data as entities and their relationships, typically using nodes and edges, and supports queries over that structure.
Which Manning books explain graph database?
Graph Algorithms for Data Science, AI Agents and Applications, Natural Language Processing in Action, Second Edition and Data Analysis with LLMs.
What should I know before learning graph database?
Manning books that teach graph database usually introduce similarity search, language model, embedding and graph first.
What kinds of graph database are there?
Kinds of graph database include Neo4j and Memgraph.
What is graph database a kind of?
Graph database is a kind of database. A database is an organized persistent data store, typically managed by software, that supports storing, retrieving, and modifying data.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



