Graph
Youtube search... ...Google search
- Graph ... Spreadsheets ... Documents ... Slides ... Database; Vector & Relational ... Wiki
- Analytics Advisor ... Visualization ... Graphical Tools ... Diagrams & Business Analysis ... Requirements ... Loop ... Bayes ... Network Pattern
- Perspective ... Context ... In-Context Learning (ICL) ... Transfer Learning ... Out-of-Distribution (OOD) Generalization
- Embedding ... Fine-tuning ... RAG ... Distillation ... Alpaca ... Dimensional Reduction
- Clustering ... Recommendation ... Anomaly Detection ... Classification ...find outliers
- Causation vs. Correlation ... Autocorrelation ...Convolution vs. Cross-Correlation (Autocorrelation) ... Signal Processing
- Implementing Data Governance with Knowledge Graphs
- Agents/Assistants ... Personal Companions ... Team AI ... Customer-Facing AI ... Negotiation ... Productivity ... Email ... Web Automation ... Computer Use ... Model Context Protocol (MCP) ... Robotic Process Automation (RPA) ... LangChain
- Architectures for AI ... New Architecture Options ... Generative AI Stack ... Enterprise Architecture (EA) ... Enterprise Portfolio Management (EPM) ... Architecture and Interior Design
A graph represents things as nodes and their connections as edges. A supplier, component, product, and customer can each be nodes; “supplies,” “used in,” and “purchased by” describe their relationships. That makes questions about indirect dependencies explicit: if a supplier has a problem, which products and customers could be affected? Graphs are a way to model connected information. Their usefulness and query speed depend on the data model, storage engine, indexes, and workload, rather than following automatically from drawing nodes and arrows.
Graphs now play several distinct roles in AI. Knowledge graphs describe entities and their meaning; graph algorithms measure paths, communities, and influence; graph machine learning predicts from connections; and agent workflow graphs control how tasks proceed. GraphRAG uses graph structure to help select evidence for a language model. Recent systems also track changing facts for agent memory or query relationships over existing tables, reducing the need to build a separate copy of every dataset. These approaches can work together, but they solve different problems.
The practical impact is strongest when relationships change the answer. Graphs can support supplier-dependency analysis, investigation of suspicious account networks, software-repository understanding, and shared project context. They also add responsibilities: matching identities, defining relationship meaning, retaining sources and dates, enforcing access rules, and evaluating whether the extra structure improves results. A connected path can explain how an answer was obtained; it doesn't establish that every relationship is true or that an association is causal. This page moves from the concepts to current applications, implementation choices, and the underlying algorithms.
Reviewed 23 November 2026. Availability labels distinguish product releases, previews, and research. Provider benchmarks aren't guarantees for a different workload.
Graph Concepts at a Glance
A Relationship Path Makes a Dependency Visible
Supplier node
➜
Component node
Product node
Product node
A useful edge should have a precise meaning. “Mentioned alongside” is weaker than “supplies under an active contract,” and neither is equivalent to “will cause a delay.” Source records and time validity make these differences inspectable. The graph can be stored in a dedicated graph database or defined as a logical view over tables, depending on the platform.
Taxonomy vs Ontology vs Knowledge Graphs
These three terms are often used interchangeably, but they describe different layers of the same effort to organize knowledge so that people and machines can use it. A useful way to keep them straight is to think of a library: the taxonomy is the shelving scheme, the ontology is the set of rules that says what kinds of things exist and how they may relate, and the knowledge graph is the catalog of actual books, authors, and citations connected according to those rules. Each layer builds on the one before it, and most mature systems use all three.
Taxonomy serves as the most basic level of organizational structure, functioning similarly to a system of nested computer folders. Its primary purpose is to categorize entities into a parent-child hierarchy, which facilitates finding, labeling, and navigating information. While useful for creating a standardized vocabulary across an organization, it is limited because it only defines location and hierarchy, failing to provide the AI with contextual understanding of how different entities relate to one another in the real world.
Ontology acts as a semantic rulebook that builds upon the foundational structure of a taxonomy. If a taxonomy is a list of nouns, an ontology introduces the verbs by defining semantic meanings and logical rules for a specific domain. It establishes explicit, granular relationships between entities, effectively giving the AI a grammar lesson so it can understand the actions and constraints of its universe. Ontologies are highly effective for interoperability, but expressive ontology languages such as OWL can make automated reasoning computationally expensive over very large, fast-changing datasets, which is one reason many production systems pair a lightweight schema with selective reasoning.
Knowledge Graphs represent the implementation layer where the data actually lives and breathes. They connect real-world entities in a structure that works like a map: nodes represent entities, edges represent relationships, and properties provide descriptive details. Knowledge graphs can be built on either of the two dominant graph data models, the labeled property graph or the W3C Resource Description Framework (RDF), both discussed later on this page. Unlike relational databases, which reconstruct relationships through join operations at query time, graph stores keep relationships as explicit records that can be traversed directly, which makes multi-hop questions efficient and provides the structured context AI systems need for multi-step reasoning.
The layers work together in practice. A retailer might use a taxonomy to place a product under "Electronics > Audio > Headphones," an ontology to state that a headphone model can be compatibleWith a device and is manufacturedBy a company, and a knowledge graph to record that a specific model is compatible with a specific phone and was recalled in a specific month. Without the taxonomy, products would be hard to browse; without the ontology, the system would not know what compatibility means; and without the knowledge graph, there would be no specific facts to reason about. Once those connections exist, the same structure can support search, recommendations, compliance checks, and AI assistants, which is why the use cases in the next section span so many industries.
Headphone model── manufacturedBy ──➜Company
Taxonomy vs Ontology vs Knowledge Graphs | Know the differences!
Explains the differences between taxonomies, ontologies and knowledge graphs.
Graph Use Cases
- A Taxonomy of Graph Use Cases | Dan McCreary - Medium
- Graph database Use Cases | Max De Marzi - Slideshare
A problem is a good fit for graphs when most of its value lies in the connections rather than in individual records. Typical signals include questions that span several hops ("which suppliers of my suppliers are exposed to this port?"), relationships that are numerous and change often, entities that must be matched or deduplicated across systems, and patterns such as rings, chains, or hubs that are hard to express as rows and columns. The diagram and list below, drawn from the use-case taxonomies referenced above, group common applications; each entry includes a short note on why the graph structure matters for that domain.
- Machine Learning: graph features, node embeddings, and graph neural networks add relational signals that improve classification, prediction, and anomaly detection.
- Portfolio Analytics (Asset Management): holdings, issuers, counterparties, and ownership chains form networks that reveal concentrated or indirect exposures.
- Master Data Management: a graph links duplicate and partial records for customers, products, or suppliers into a single trusted view.
- Data Integration: graphs connect schemas and records from many sources without forcing them into one rigid table design, supporting interoperability.
- Social Networks: social network analysis measures influence, communities, and information flow among people and accounts.
- Genomics (Gene Sequencing) BioInformatics: bioinformatics uses graphs for gene regulatory networks, protein interaction maps, and genome assembly graphs that stitch sequencing reads together.
- Epidemiology: contact networks model how infections spread and which interventions break the most transmission paths.
- Web Browsing: the web is itself a graph of pages and hyperlinks, and link-analysis algorithms such as PageRank rank pages by their position in it.
- Semantic Web: RDF and linked data publish machine-readable facts that can be joined across organizations using shared identifiers.
- Communication Networks (Network Cell Analysis): telecommunications operators model cells, links, and traffic to find bottlenecks and predict failures.
- Internet of Things (Sensor Networks): IoT deployments and digital twins represent devices, locations, and dependencies so that a fault can be traced to its upstream causes.
- Recommendations: recommendation systems traverse user-item-attribute graphs to find "people like you also bought" connections.
- Fraud Detection (Money Laundering): fraud detection looks for rings of accounts, shared devices, and circular money flows that are invisible in single transactions.
- Geo Routing (Public Transport): shortest-path algorithms over road and transit networks power navigation and transportation planning.
- Customer 360: linking interactions, accounts, and households gives a complete picture of each customer for service and marketing.
- Insurance Risk Analysis: insurers connect claims, providers, vehicles, and properties to detect organized fraud and correlated risk.
- Content Management & Access Control: permissions modeled as graphs of users, groups, roles, and resources answer "who can see this document, and why?"
- Privacy, Risk and Compliance: lineage graphs show where sensitive data came from and where it flows, supporting data governance and audits.
A recurring theme across these examples is context: a transaction, sensor reading, or document means more when its neighbors are visible. The Neo4j article and graphics below illustrate that argument for AI systems in particular, and they set up the next section, which looks at how knowledge graphs and large language models complement each other. In each case the graph does not replace other data systems; it sits alongside them as the layer that records how things are connected.
Adding Context Will Take AI to the Next Level | Neo4j
Knowledge Graph with Large Language Models (LLM)
- Generative AI
- Large Language Model (LLM)
- Large Language Model = Knowledge Graph Store? Yes, by fine-tuning LLM with KG | Peter Lawrence - Medium
- ChatGPT (LLMs) vs. Knowledge Graphs | Kurt Cagle - The Cagle Report
- Using Knowledge Graphs to Reduce Output Errors in Large Language Models | Doug Dunn
Large language models and knowledge graphs have opposite strengths, which is why they are increasingly combined. LLMs are fluent, general, and good at interpreting messy language, but they store knowledge implicitly in billions of parameters, cannot easily show where an answer came from, and may produce confident errors when their training data is thin or out of date. Knowledge graphs store facts explicitly, can be audited and updated one fact at a time, and support precise multi-hop queries, but they are expensive to build, often incomplete, and do not understand natural language on their own. A widely cited roadmap by Shirui Pan and colleagues, published in IEEE Transactions on Knowledge and Data Engineering in 2024, organizes the combinations into three families: KG-enhanced LLMs, which use graphs during pre-training or inference to ground and explain model outputs; LLM-augmented KGs, which use language models for graph construction, completion, embedding, and question answering; and synergized systems in which both play equal roles in bidirectional reasoning.
Each family now has practical tools. On the construction side, LLMs extract entities and relationships from documents and propose graph schemas, a task that once required hand-built pipelines of natural language processing components; GraphGPT, featured below, was an early demonstration of this idea using prompt engineering. On the query side, "Text2Cypher" and similar natural-language-to-query methods let a model translate a user's question into a graph query, so the answer comes from the database rather than from the model's memory. Between the two sits graph-based retrieval, in which the graph decides what context the model sees; that approach has become important enough to warrant its own section, which follows the videos below.
|
|
|
|
Graph Retrieval-Augmented Generation (GraphRAG)
- Retrieval-Augmented Generation (RAG)
- From Local to Global: A GraphRAG Approach to Query-Focused Summarization | D. Edge, H. Trinh, et al. - Microsoft Research
- GraphRAG | Microsoft - GitHub
- Graph Retrieval-Augmented Generation: A Survey | B. Peng et al. - arXiv
- RAG vs. GraphRAG: A Systematic Evaluation and Key Insights | H. Han et al. - arXiv
GraphRAG is retrieval-augmented generation in which graph structure helps select evidence for a language model. The graph may be a curated knowledge graph, automatically extracted entities and relationships, a document structure, or an embedding-derived retrieval graph. In standard (vector) RAG, documents are split into chunks, each chunk is turned into an embedding, and the chunks most similar to the question are pasted into the model's prompt. That works well when the answer is contained in one or two passages that resemble the question, but it struggles in two common situations. The first is multi-hop questions, where the answer depends on connecting facts that live in different documents and do not individually look like the question. The second is "global" or sensemaking questions such as "What are the main themes across these reports?", where no single chunk contains the answer because it depends on the whole collection. GraphRAG designs address these questions by organizing or following connections before or during retrieval. Whether this helps more than other retrieval methods depends on graph construction, question type, evidence quality, and the evaluation.
How GraphRAG Works
A 2024 survey by Boci Peng and colleagues describes GraphRAG as a three-stage workflow: graph-based indexing, graph-guided retrieval, and graph-enhanced generation. In the indexing stage, a graph is either loaded from an existing knowledge graph or constructed from text, typically by prompting an LLM to extract entities and relationships from each chunk and then merging duplicates. In the retrieval stage, the system selects relevant nodes, paths, subgraphs, or precomputed summaries, often combining graph traversal with semantic search over embeddings. In the generation stage, the retrieved structure is converted into text (or another format the model can read) and passed to the LLM along with the question, which lets the answer cite specific entities and relationships.
Microsoft Research's open-source GraphRAG system, introduced by Darren Edge, Ha Trinh, and colleagues in April 2024, is the best-known implementation. It makes each stage concrete, and its indexing choices explain both its strengths and its costs. The pipeline works as follows:
- Chunking and extraction. Source documents are split into text units, and an LLM extracts entities, relationships, and optional claims from each unit.
- Graph building and summarization. Duplicate entities are merged and the LLM writes consolidated descriptions for each entity and relationship.
- Community detection. The Leiden algorithm partitions the graph into a hierarchy of communities, groups of entities that are more densely connected to each other than to the rest of the graph, which is a form of graph clustering.
- Community reports. The LLM writes a summary report for every community at every level of the hierarchy, producing a multi-resolution map of the corpus.
- Querying. Local search starts from entities mentioned in the question and gathers their neighbors, relationships, source text, and community reports; global search answers corpus-wide questions with a map-reduce pass over community reports; DRIFT search (Dynamic Reasoning and Inference with Flexible Traversal) first compares the question with the most relevant community reports to draft a broad answer and follow-up questions, then answers those follow-ups with local search; and basic search provides an ordinary vector RAG baseline.
The full-index design trades preparation effort for reusable entity descriptions and community reports. Both indexing and query-time generation have costs; global map-reduce search can still process substantial material. Frequent updates can require refreshing derived descriptions and communities when source documents change. Much of the research since 2024 has focused on reducing that up-front cost or deferring it until query time.
Variants and Design Patterns
GraphRAG is now a family of techniques rather than a single method, and the variants differ mainly in what kind of graph they build and how they search it. Some query a curated knowledge graph directly, others build a graph from text automatically, and others defer most graph construction until a question arrives. The list below summarizes the main patterns and representative systems.
- Knowledge-graph querying (Text2Cypher and NL-to-query). When the data already lives in a curated graph database, an LLM translates the question into a query language such as Cypher or GQL, the database executes it, and the results ground the answer. Neo4j's open-source neo4j-graphrag Python package includes a Text2Cypher retriever alongside vector, hybrid, and graph-traversal retrievers, and Microsoft Fabric's graph preview offers a natural-language-to-GQL (NL2GQL) service whose generated queries can be inspected. This pattern works best for precise questions such as counts, lookups, and filters.
- Community-summary GraphRAG. Microsoft's approach, described above, precomputes hierarchical community reports to support global sensemaking questions over large private corpora.
- Graph-guided passage retrieval. HippoRAG, presented at NeurIPS 2024 by a team led from Ohio State University, builds a schemaless knowledge graph from passages and runs the Personalized PageRank algorithm from entities in the question to find related passages in a single step, an approach inspired by the hippocampal indexing theory of human memory. Its authors reported gains of up to 20% on multi-hop question answering and single-step retrieval that was 10 to 20 times cheaper and 6 to 13 times faster than iterative retrieval, and a 2025 successor, HippoRAG 2, extends the idea toward continual learning.
- Lightweight and incremental graphs. LightRAG (University of Hong Kong, Findings of EMNLP 2025) combines graph structure with vector representations in a dual-level retrieval scheme that searches both specific entities and broader themes, and it adds an incremental update algorithm so new documents can be integrated without rebuilding the index.
- Deferred summarization. Microsoft's LazyGraphRAG builds its index with conventional NLP techniques instead of LLM calls and postpones summarization until a question arrives. Microsoft reports indexing costs identical to vector RAG and 0.1% of full GraphRAG, with answer quality comparable to GraphRAG global search at more than 700 times lower query cost on its benchmark; the technology was later integrated into the Microsoft Discovery research platform and Azure Local.
- Hybrid graph and vector platforms. Database vendors now combine graph traversal with vector indexes in one engine, including Google's Spanner Graph (with LangChain integration for GraphRAG applications), Amazon Neptune Analytics, and TigerGraph's hybrid graph and vector search, so that semantic similarity finds entry points and graph structure expands them into context. Frameworks such as LangChain and LlamaIndex provide connectors for these patterns, and the same retrieval tools are increasingly exposed to AI agents, which decide at run time whether to search text, traverse a graph, or run a query.
Evidence, Costs, and Limitations
The strongest evidence for GraphRAG comes from the questions it was designed for. In the original Microsoft study, GraphRAG produced answers judged more comprehensive and diverse than a conventional RAG baseline for global sensemaking questions over datasets in the range of one million tokens. Microsoft later reported that DRIFT search beat its own local search on 78% of comparisons for comprehensiveness and 81% for diversity across 50 local questions. These results are encouraging but come with an important caveat: they rely largely on win rates judged by another LLM, and independent analyses have found that such judges can be swayed by the order in which answers are presented, the length of answers, and run-to-run variation.
Controlled, independent comparisons paint a more balanced picture. A 2025 study by Haoyu Han and colleagues at Michigan State University, the University of Oregon, and Meta evaluated RAG and several GraphRAG designs under identical models, embeddings, and settings and concluded that the two approaches are complementary, with each excelling on different tasks; the authors proposed routing each query to the better method or combining both. The GraphRAG-Bench project reached a similar conclusion, noting that GraphRAG frequently underperforms vanilla RAG on many real-world tasks and finding that basic RAG matches it on simple fact retrieval, while graph methods help more on complex reasoning and contextual summarization. Cost is the other major constraint: full GraphRAG indexing calls an LLM over every chunk, and LazyGraphRAG's benchmark itself documents how much more expensive that is than vector indexing. Graph quality also matters, because entity-extraction errors, missed duplicates, and outdated relationships propagate directly into answers, and because continuously changing corpora force repeated re-indexing.
These findings point to a practical rule of thumb: match the retrieval strategy to the question. No single method dominates, so systems that serve varied users increasingly route each question to the most suitable retriever. The table below summarizes current guidance, which should be validated against an organization's own questions using careful evaluation and benchmarks that reflect real workloads.
| Question type | Example | Approach that usually fits best |
|---|---|---|
| Exact lookup, count, or filter over structured data | "How many open claims does this provider have?" | Text2Cypher or GQL query against a curated knowledge graph |
| Single-hop fact contained in one passage | "When was the policy last updated?" | Vector or hybrid (keyword plus vector) RAG with reranking |
| Multi-hop question connecting entities across documents | "Which suppliers of our suppliers depend on the flooded port?" | Graph-guided retrieval such as GraphRAG local search, HippoRAG, or LightRAG |
| Corpus-wide themes or summaries | "What are the main risks discussed across these 5,000 reports?" | Community-summary methods such as GraphRAG global search or LazyGraphRAG |
| Mixed or unknown question types | A general-purpose enterprise assistant | Query routing or fusion of vector and graph retrieval, often orchestrated by an agent |
Recent Developments
Background: Standards and Convergence
The past two years have reshaped the graph landscape in three ways: standardization, convergence with mainstream databases, and integration with generative AI. On standards, ISO published ISO/IEC 39075:2024 (GQL) on April 12, 2024, the first new ISO database query language since SQL, following the 2023 publication of SQL/PGQ (ISO/IEC 9075-16:2023), which lets SQL queries match graph patterns over relational tables. Vendors have moved quickly to align: Neo4j introduced a new language version, Cypher 25, in its 2025.06 release, documents conformance with most mandatory GQL features, and sets Cypher 25 as the default for new self-managed deployments from 2026.02; Google Cloud's Spanner Graph reached general availability in early 2025 with an ISO GQL-compatible interface; TigerGraph's Savanna cloud platform (January 2025) supports GSQL, openCypher, and GQL pattern matching; and Microsoft Fabric added a graph capability in public preview built on the labeled property graph model and GQL. On the semantic web side, the W3C advanced RDF 1.2, which adds triple terms that let statements be made about other statements, to Candidate Recommendation in 2026.
Convergence with general-purpose databases is the second trend. SQL/PGQ support appeared in PostgreSQL 19 development, but was reverted before the final release; see the dated correction below. Early beta demonstrations should not be read as features of the shipped database. Amazon's Neptune Analytics, generally available since November 2023, runs graph algorithms and vector similarity search over in-memory graphs, reflecting a broader move toward engines that handle graph, relational, search, and vector workloads together. The open-source landscape has also consolidated: Apache Giraph was retired in 2023, the embedded Kuzu database was archived in October 2025 (with community forks continuing its code), and Dgraph changed hands twice, moving to Hypermode in 2023 and to Istari Digital in October 2025.
The third trend, and the most active research area, is the coupling of graphs with LLMs and agents, covered in detail in the GraphRAG section above. Work since 2024 has focused on lowering indexing costs (LazyGraphRAG, LightRAG), improving multi-hop retrieval (HippoRAG and HippoRAG 2), applying graph structure to software repositories and code understanding, and building more rigorous evaluations (the Han et al. comparison, GraphRAG-Bench, and Microsoft's BenchmarkQED). The GraphQL specification's September 2025 edition, its first since 2021, likewise highlighted features meant to give AI assistants and agents richer context about APIs. The open questions are mostly practical ones: how to keep graphs current as documents change, how to measure answer quality without relying on biased LLM judges, and when the extra structure is worth its cost.
Retrieval with Less Up-Front Language-Model Work
Microsoft Research's current GraphRAG account describes GraphRAG Zero, an embedding-derived retrieval graph that eliminates LLM calls during indexing and can also retrieve without query-time LLM calls. The language model can then generate the final answer from the selected evidence. Microsoft identifies Foundry IQ (Azure AI Search) as a product integration. In its research evaluation, graph-guided retrieval improved topical coverage while vector retrieval retained higher chunk precision. The published research timings aren't service-level measurements for Foundry IQ. Microsoft Research: evolution of GraphRAG
This changes a design assumption: a useful retrieval graph needn't begin as a complete, LLM-extracted ontology of people, organizations, and contracts. Different graph constructions support different questions. Test precise lookups, linked questions, and collection-wide summaries separately, including whether the evidence supports the answer rather than merely producing a persuasive explanation.
October and November 2026: Graphs Closer to Enterprise Data
Neo4j announced Context Engine on 20 October 2026 in private preview. It combines a business ontology, graph retrieval, context management, and memory-oriented capabilities. Its potential role is a shared representation of business concepts for multiple agents; the announcement isn't independent proof of improved accuracy or autonomous learning. Teams still need ownership of definitions, permissions, corrections, and operational changes. Neo4j Context Engine announcement
On 16 November, Neo4j announced Virtual Graph as generally available in Aura on GCP, with AWS and Azure support to follow. It translates graph queries into SQL over warehouse tables instead of requiring a separate bulk copy of those tables. That can simplify a graph prototype over existing data. Query results still return to the requesting tools or agents, and warehouse compute, supported queries, access controls, and performance still need review. “Zero-copy” doesn't mean no information leaves a query boundary. Neo4j Virtual Graph availability
Google's Spanner release notes document graph creation from SQL views, graph-label descriptions and synonyms, and preview support for computing graph properties through remote functions. The implication is that graph access is increasingly part of a broader database platform rather than always a separate data migration. Check the status of each feature rather than assuming every Spanner capability is generally available. Spanner release notes
Temporal Graphs for Changing Agent Context
Zep's current Context Graph documentation describes facts linked to source episodes and timestamps for when relationships become valid or invalid. It uses the open-source Graphiti framework; Zep is a service, and its graph database service is called Konig. User-specific and shared graphs have different scopes. This supports questions about current and historical customer or project context, but source provenance doesn't establish correctness. Entity matching, conflicting updates, deletion, and access rules remain application concerns. Zep Context Graph overview
2026 Research: Learning Across Graphs and Connected Tables
The KumoRFM-2 paper, submitted 14 April 2026, describes a relational foundation model that processes connected tables without manually flattening them into one feature table. It supports in-context learning and fine-tuning, with an evaluation spanning 41 predictive tasks. This is prediction from connected records, rather than retrieving passages to write an answer. Churn, recommendation, and forecasting workflows are candidate applications, but local temporal backtesting and comparison with simpler models are still necessary. Reported benchmark improvements apply to the paper's setup. KumoRFM-2 research
The GraphBFF preprint, revised in May 2026, studies billion-scale heterogeneous graph foundation models and reports transfer to ten downstream tasks on unseen graphs. The advance is model reuse across graph tasks and datasets, rather than training every graph model from scratch. The paper remains research evidence, not a universal predictor or a ready-made guarantee for a new domain. Training-data overlap, sampling, label quality, and distribution shift matter when evaluating transfer. Billion-Scale Graph Foundation Models
Standards: Verify the Shipped Feature, Not Just the Proposal
RDF 1.2 Concepts reached a Candidate Recommendation Draft dated 11 November 2026. It introduces triple terms, allowing statements to refer to triples, and directional language-tagged strings. This can support richer descriptions of statements; the syntax itself doesn't verify their provenance or truth. Candidate Recommendation Draft is a standards-development status, not a final W3C Recommendation. W3C RDF 1.2 Concepts
PostgreSQL 19 is an important correction to earlier coverage: SQL/PGQ property-graph support appeared during development but was reverted in Beta 4 on 24 September 2026. PostgreSQL 19's final release on 19 November doesn't make that withdrawn feature available. Don't plan native PostgreSQL 19 graph queries from early beta articles; verify the installed release and any extension separately. PostgreSQL Beta 4 changes PostgreSQL 19 final release
Current Graph Tools and Applications
This table covers newer applications and current capabilities that complement the database catalog below. A research library, managed retrieval service, workflow integration, and graph database aren't interchangeable purchases.
| Tool or application | Role and availability | Impact and limits to evaluate |
|---|---|---|
| GraphRAG Zero / Foundry IQ | Graph-guided retrieval, with a product integration in Foundry IQ according to Microsoft Research. | Lower model-dependent indexing work; evaluate coverage, evidence precision, end-to-end latency, and service-specific controls. Distinguish this from the original open-source GraphRAG implementation. |
| GitHub Next Repo Mind Light | Repository-understanding application, publicly available as a Docker image. Uses GraphRAG Zero over issues and pull requests with live code and documentation retrieval; exposes an MCP interface. The current underlying implementation is proprietary. | Helps investigate architecture, ownership, incidents, and reasons behind past changes. A public container doesn't mean all its source is open. Review repository permissions, index handling, and citations to current code. |
| Neo4j Context Engine | Private preview announced October 2026; business ontology, context, and graph-oriented agent memory. | Candidate shared knowledge layer for teams. Confirm preview access and limits before committing a production dependency. |
| Neo4j Virtual Graph | Generally available in Aura on GCP as of 16 November 2026; graph querying over warehouse tables. | Reduces data-copy requirements. Check query compatibility, warehouse load, and who can see returned rows. |
| Amazon Bedrock Knowledge Bases with Neptune Analytics | Managed GraphRAG combining vector retrieval and graph expansion over ingested documents. | Faster route to a managed connected-document assistant. Current documentation lists S3-only sources, limited graph-build customization, and no Neptune Analytics graph autoscaling. Check supported regions and underlying service costs. |
| Microsoft Fabric Graph and Data Agent | Property graphs over OneLake with GQL and natural-language queries; graph-powered Data Agent reasoning is in preview. | Useful for teams already working in Fabric. Inspect generated queries and permissions; capacity usage and storage still cost money. |
| Zep / Graphiti | Temporal context service and underlying open-source graph framework. | Supports changing facts with source links and historical context. Test scope isolation, mistaken identity merges, and updates before trusting the recalled state. |
| KumoRFM-2 | Relational foundation model with in-context and fine-tuned prediction modes, documented in an April 2026 research paper. | Candidate for predictions across connected tables. Evaluate calibration, temporal leakage, deployment constraints, and performance against task-specific baselines. |
Applications and Their Practical Impacts
The following are example designs, not measured results from the named products.
| Application | What the graph connects | Impact to test |
|---|---|---|
| Team project knowledge | Decisions, requirements, documents, owners, dependencies, and valid dates. | Faster handovers and clearer answers about who decided what. Separate proposed decisions from approved ones. |
| Software incident investigation | Services, deployments, code, issues, pull requests, and responsible teams. | Faster identification of relevant history and contacts. A path suggests an investigation lead; it doesn't prove the root cause. |
| Supply-chain resilience | Suppliers, parts, facilities, products, orders, and alternatives. | More complete dependency checks. Include stock, contracts, time, and substitute constraints before estimating disruption. |
| Fraud and identity analysis | Accounts, devices, transactions, addresses, and organizations. | Better investigation queues for connected patterns. Shared devices or addresses aren't proof of misconduct; assess false positives and review outcomes. |
| Research and discovery | Papers, authors, methods, datasets, claims, and supporting or conflicting evidence. | More inspectable literature trails. Co-occurrence, citation, extraction, and experimentally established relationships must remain distinguishable. |
Building and Evaluating a Useful Graph
Start with questions that need connected data. Write down the answer a user should receive, which sources can establish it, the relevant time, and who is allowed to see it. Build the smallest graph that can answer those questions. A carefully defined relationship often contributes more than thousands of loosely extracted links.
A Practical Evaluation Plan
A graph-based assistant needs at least two evaluations: the quality of the graph and retrieved evidence, and the quality of the answer made from that evidence. A fluent answer can hide a missing edge, a wrong entity merge, or a stale summary. Microsoft's BenchmarkQED work reflects this distinction by evaluating evidence coverage as well as generated answers. GraphRAG systems and evaluation
| Test area | Concrete check |
|---|---|
| Simple questions | Compare exact queries, keyword/vector retrieval, and graph-guided retrieval on the same sources. Don't assume the most complex method wins. |
| Multi-hop evidence | Verify every relationship in the answer path against a source. Test missing links and conflicting evidence, including cases with no justified answer. |
| Global coverage | Check whether summaries cover major and minority themes without inventing consensus. Evaluate supporting passages as well as answer length or style. |
| Identity resolution | Include identical names, renamed companies, shared devices, duplicates, and records that must remain separate. |
| Time and updates | Ask both current and historical questions. Correct or remove a source and check derived facts, indexes, summaries, and cached answers. |
| Permissions | Test users with different scopes. Restrict evidence before it reaches the model; check that graph paths, aggregate counts, and community summaries don't disclose restricted relationships. |
| Graph ML predictions | Use time-aware or entity-aware splits, avoid future-information leakage, compare simpler baselines, and measure calibration and false positives. |
| Total operating cost | Measure ingestion, entity review, graph refresh, retrieval, generation, warehouse compute, and human maintenance. Report retrieval latency separately from full answer latency. |
From a Useful Prototype to a Maintained System
Give graph definitions and important relationship types owners. Version schemas and extraction prompts, retain stable identifiers, and record source-to-derived-fact lineage. Define what happens when a source changes, disappears, or loses authorization. A fact's expiration date, a lower search rank, and physical deletion are different operations; account for retained history and backups explicitly.
For natural-language-to-query tools, inspect representative generated queries, use read-only access when the task is informational, and set resource limits for expensive traversals. Validate counts and business filters against known results. For graph ML, keep predicted edges separate from confirmed records so a prediction doesn't quietly become its own future training evidence. These are implementation choices to test, not capabilities guaranteed by adopting a graph product.
Knowledge Graph
- Wiki
- AI Powered Search | Trey Grainger
- Apache Solr ...open source enterprise search platform built on Apache Lucene™. Solr is highly scalable, providing fully fault tolerant distributed indexing, search and analytics. It exposes Lucene's features through easy to use JSON/HTTP interfaces or native clients for Java and other languages. The PyLucene sub project provides Python bindings for Lucene.
- Relevant Search: With applications for Solr and Elasticsearch | Doug Turnbull and John Berryman
- Changing Bits and Lucene in Action | Michael McCandless
- Knowledge Graph Lifecycle: Building and Maintaining Knowledge Graphs
- 2303.13948 Knowledge Graphs: Opportunities and Challenges | arXiv.org
- Industry-scale knowledge graphs: lessons and challenges
- 2206.07472 Collaborative Knowledge Graph Fusion by Exploiting the | arXiv.org
- Knowledge Graph Lifecycle: Building and maintaining Knowledge Graphs
Having seen how knowledge graphs feed AI systems, it helps to look more closely at what a knowledge graph is and what it takes to build one; PRIMO.ai's companion page on Knowledge Graphs covers related material. A knowledge graph is a directed labeled graph in which domain-specific meanings are associated with nodes and edges, so that it formally represents semantics by describing entities and their relationships. Knowledge graphs may use ontologies as a schema layer, which allows logical inference to retrieve implicit knowledge rather than only answering queries about explicitly stored facts. For example, if the ontology states that every subsidiaryOf relationship is transitive, a query can find a parent company's indirect subsidiaries even though only direct links were recorded. Knowledge graphs also provide the tools to analyze and visualize the information in a graph database, and the most visible public examples, including Google's Knowledge Graph and the open, collaboratively edited Wikidata, show how a shared graph of entities can power search panels, question answering, and data linking at very large scale.
Ontology Management with a Scaleable Knowledge Graph
Cambridge Semantics on managing ontologies with a scalable knowledge graph.
Building and maintaining a knowledge graph is mostly a data engineering problem, and the difficulties appear at every stage of the lifecycle, from acquiring raw data to making the finished graph usable. The main challenges are data acquisition, data representation, data quality, data integration, data alignment, data evolution, data scalability, data security, and data usability, each described below. Several of them interact; for example, poor alignment creates duplicate entities that then degrade both quality and usability.
- Data acquisition: is the process of collecting and extracting data from various sources to populate a knowledge graph. Data acquisition can be challenging because the sources may be heterogeneous, incomplete, inconsistent, noisy, or unstructured. Data acquisition may also involve different methods, such as crawling, scraping, parsing, annotating, or linking data.
- Data representation: is the process of modeling and encoding data in a suitable format for a knowledge graph. Data representation can be challenging because the format may vary depending on the type of knowledge graph (e.g., RDF-based or LPG-based), the schema or ontology used, the level of granularity or abstraction, and the trade-offs between expressiveness and efficiency.
- Data quality: is the process of ensuring that the data in a knowledge graph is accurate, consistent, complete, and up-to-date. Data quality can be challenging because the data may contain errors, ambiguities, redundancies, or conflicts that need to be detected and resolved. Data Quality work may also involve different techniques, such as validation, verification, cleaning, deduplication, or reconciliation.
- Data integration: is the process of combining and aligning data from multiple sources into a unified knowledge graph. Data integration can be challenging because the sources may have different schemas, vocabularies, formats, or semantics that need to be harmonized and mapped. Data integration may also involve different approaches, such as schema-based, instance-based, or hybrid-based integration.
- Data alignment: is the process of identifying and linking equivalent or related entities or concepts across different sources or knowledge graphs. Data alignment can be challenging because the entities or concepts may have different names, identifiers, descriptions, or attributes that need to be matched and aligned. Data alignment may also involve different methods, such as rule-based, similarity-based, learning-based, or crowdsourcing-based alignment.
- Data evolution: is the process of updating and maintaining the data in a knowledge graph over time. Data evolution can be challenging because the data may change due to new facts, events, sources, or requirements that need to be incorporated and reflected in the knowledge graph. Data evolution may also involve different aspects, such as versioning, provenance, change detection, change propagation, or change notification.
- Data scalability: is the process of ensuring that the knowledge graph can handle large volumes of data and queries without compromising performance or quality. Data scalability can be challenging because the data may grow rapidly and exceed the capacity or resources of the system that stores and processes it. Data scalability may also involve different solutions, such as distributed computing, parallel processing, caching, indexing, or compression.
- Data security: is the process of protecting the data in a knowledge graph from unauthorized access or misuse. Data security can be challenging because the data may contain sensitive or confidential information that needs to be safeguarded and controlled. Data security may also involve different measures, such as encryption, authentication, authorization, auditing, or anonymization.
- Data usability: is the process of ensuring that the data in a knowledge graph is accessible and understandable by users and applications. Data usability can be challenging because the data may be complex or abstract and need to be simplified and explained. Data usability may also involve different features, such as query languages, APIs, interfaces, visualizations, or explanations.
Large language models have changed the balance among these challenges without removing them. LLM-based extraction makes acquisition and initial construction far faster, and LLMs can propose candidate alignments between entities from different sources, but they also introduce new quality risks such as invented relationships, inconsistent labels, and duplicate entities with slightly different names. For that reason, most production pipelines keep validation rules, provenance tracking, and human review in the loop, treating the LLM as a fast first draft rather than the final authority.
Applications of Knowledge Graphs
Knowledge graphs have come to play a central role in representing the information extracted using natural language processing and computer vision, because they give extracted entities and relationships a durable, queryable home. They are also used for data integration, data quality, data governance, data discovery, analytics, and machine learning, and they increasingly serve as the grounding layer for search engines, enterprise assistants, and GraphRAG systems. The two definitions below clarify how a semantic knowledge graph relates to the ontology that often sits underneath it, which is the subject of the next subsection.
- A semantic knowledge graph can make use of an ontology to describe entities and their relationships, but it also contains factual knowledge and definitions based on business needs, focused on the data integration and analysis of the domain
- An ontology is a formal and standardized representation of knowledge that defines the concepts and relationships in a domain. An ontology can be used as a schema layer for a knowledge graph.
Ontology
- Ontology | Wikipedia
- Ontology - Research-Methodology
- Protege Ontology Library
- What is an ontology and why we need it - Protégé
- Protégé | Stanford plug-in architecture can be adapted to build both simple and complex ontology-based applications. Developers can integrate the output of Protégé with rule systems or other problem solvers to construct a wide range of intelligent systems.
An ontology is a formal and standardized representation of knowledge that defines the concepts and relationships in a domain. Its first job is to provide a common vocabulary and a shared understanding, so that different teams, systems, and organizations mean the same thing when they use a term. That shared meaning is what allows an ontology to break down data silos and enable interoperability and inference among heterogeneous data sources, supporting a semantic knowledge graph that in turn enables data quality, governance, discovery, analytics, and machine learning. Because ontologies can incorporate computable descriptions, they support more precise knowledge capture, semantic data integration, sophisticated query answering, and association mining, which has made them especially valuable in health care and the life sciences.
Building ontologies manually is extremely labor-intensive and time-consuming, so there is strong motivation to automate the process. Ontology learning (also called ontology extraction, ontology generation, or ontology acquisition) is the automatic or semi-automatic creation of ontologies, including extracting a domain's terms and the relationships between the concepts those terms represent from a corpus of natural language text, and encoding them with an ontology language for easy retrieval. Classical pipelines start by extracting terms, concepts, or noun phrases from plain text using linguistic processors such as part-of-speech tagging and phrase chunking, and then use statistical or symbolic techniques to extract relation signatures, often based on pattern-based or definition-based hypernym extraction techniques. Ontology learning | Wikipedia Since 2023, large language models have been widely tested as ontology assistants that draft class hierarchies, definitions, and axioms from documents, although experts generally still review the output because subtle logical errors can propagate into every system that relies on the ontology.
Is Ontology the AI Breakthrough That Actually Threatens Jobs
Asks whether ontology-based AI is the breakthrough that really threatens jobs.
Ontologies
Lesson on ontologies in biomedical data science.
Natural Language Understanding at Scale with Spark Native NLP, Spark ML &TensorFlow with Alex Thomas
Alex Thomas on natural language understanding at scale with Spark NLP, Spark ML and TensorFlow.
Guided ML: Intelligent Autoclassification of Content Using Managed Vocabularies
TopQuadrant on automatically classifying content with managed vocabularies.
Components of Ontology
An ontology is assembled from five kinds of building blocks: classes, instances, properties, axioms, and annotations. Classes and instances describe what exists, properties describe how things relate and what attributes they have, axioms constrain what may be true, and annotations make the whole structure understandable to people. The running movie example in the list below shows how the five components work together in a single small domain.
- Classes: are the concepts or categories in the domain. Classes represent sets, collections, types, or kinds of things. Classes can be organized into a hierarchy using subsumption relations, such as subclass-of or superclass-of. Classes can also have multiple inheritance, meaning that a class can have more than one superclass. For example, in an ontology of movies, some classes could be: Movie, Director, Actor, Genre, etc.
- Instances: are the individual members of the classes. Instances are also known as objects or particulars. Instances represent the basic or "ground level" components of an ontology. Instances can have properties and relations that describe them. For example, in an ontology of movies, some instances could be: Titanic (an instance of Movie), James Cameron (an instance of Director), Leonardo DiCaprio (an instance of Actor), Romance (an instance of Genre), etc.
- Properties: are the attributes or relations that describe the classes or instances. Properties are also known as features, characteristics, parameters, or slots. Properties can have values that are either data types (such as numbers or strings) or other instances. Properties can also have cardinality constraints that specify how many values a property can have for a given class or instance. For example, in an ontology of movies, some properties could be: title (a property of Movie with a string value), directedBy (a property of Movie with an instance value of Director), hasGenre (a property of Movie with an instance value of Genre), etc.
- Axioms: are the logical rules or constraints that define the semantics of the ontology. Axioms are also known as statements or assertions. Axioms can be used to express the necessary and sufficient conditions for class membership, the equivalence or disjointness of classes, the transitivity or symmetry of properties, the domain and range restrictions of properties, and other logical inferences that can be drawn from the ontology. For example, in an ontology of movies, some axioms could be: Movie is equivalent to Film, Director is disjoint from Actor, directedBy is inverse of directs, hasGenre has domain Movie and range Genre, etc. (In practice, a disjointness axiom like the one between Director and Actor should be used carefully, since many people both direct and act.)
- Annotations: are the metadata or comments that provide additional information about the ontology elements. Annotations are also known as labels or descriptions. Annotations can be used to document the source, provenance, purpose, meaning, usage, or history of the ontology elements. Annotations can also be used to attach natural language labels or definitions to the ontology elements for human readability. For example, in an ontology of movies, some annotations could be: Movie has label "Movie" and definition "A motion picture", directedBy has label "Directed by" and comment "Indicates who directed a movie", Titanic has label "Titanic" and comment "A movie released in 1997", etc.
Types of Ontology
Ontologies differ in scope and level of abstraction, from very general frameworks that apply to any subject to narrow models built for a single application. A common classification distinguishes top-level (or foundational) ontologies, domain ontologies, task ontologies, and application ontologies; in practice, organizations often import a top-level ontology, extend it with domain ontologies, and specialize those for applications. Several widely used vocabularies, such as SKOS and Dublin Core, are better described as lightweight knowledge-organization or metadata standards than as full ontologies, and they are noted below where they fit.
- Top-level ontology: is a general and abstract ontology that provides a common foundation for more specific ontologies. A top-level ontology defines the most basic and universal concepts and relations that are applicable to any domain, such as time, space, causality, identity, etc. Examples of top-level ontologies are: Basic Formal Ontology (BFO), which was published as the international standard ISO/IEC 21838-2:2021, Descriptive Ontology for Linguistic and Cognitive Engineering (DOLCE), General Formal Ontology (GFO), and Suggested Upper Merged Ontology (SUMO).
- Domain ontology: is a specific and concrete ontology that describes the concepts and relations that are relevant to a particular domain or area of interest. A domain ontology can be derived from or aligned with a top-level ontology, but it also introduces new terms and definitions that are specific to the domain. Examples of domain ontologies are: Gene Ontology (GO) for biology, Financial Industry Business Ontology (FIBO) for finance, and Foundational Model of Anatomy (FMA) for medicine. Cyc, often listed here, is better described as a very large common-sense knowledge base built on its own upper ontology.
- Task ontology: is a specialized ontology that defines the concepts and relations that are needed to perform a certain task or activity. A task ontology can be independent of or dependent on a domain ontology, depending on whether the task is generic or domain-specific. Process Specification Language (PSL) for manufacturing processes is a frequently cited example, while Simple Knowledge Organization System (SKOS) and the Dublin Core Metadata Initiative (DCMI) vocabularies serve the related tasks of organizing concepts and describing resources.
- Application ontology: is a customized ontology that combines a domain ontology and a task ontology to support a specific application or system. An application ontology can be tailored to the needs and requirements of the application, such as the data sources, the user interface, the functionality, etc. Examples of application-oriented vocabularies are: Friend of a Friend (FOAF) for social networking, Schema.org for web markup, and Music Ontology for music information retrieval.
- Foundational ontology: is often used as a synonym for top-level ontology, emphasizing a rigorous philosophical framework that clarifies the ontological commitments and assumptions of other ontologies and helps resolve inconsistencies and ambiguities among them. The Unified Foundational Ontology (UFO) is a prominent example, with OntoUML as a conceptual modeling language grounded in it. Related tools support this work rather than being foundational ontologies themselves: OntoClean is a methodology for validating taxonomic relationships, and visualization plugins such as Protégé's OntoGraf help modelers inspect ontology structure.
Knowledge Graph Computing
The ideas above describe how knowledge is modeled; this section turns to how graph-structured data is computed on, especially by machine learning systems. Three threads run through the videos below. The first is representation learning: methods such as node2vec and knowledge graph embedding models (for example TransE) map nodes and relationships to vectors so that standard machine learning models can use them for link prediction, recommendation, and search. The second is graph neural networks, which learn by passing messages between neighboring nodes and are covered in depth on their own PRIMO.ai page. The third is the role of graph databases as the operational backbone that supplies connected, explainable context to AI applications, a theme Neo4j speakers return to repeatedly. The gallery closes with a lecture on spectral graph theory, which provides the mathematical foundation for the Laplacian-based methods discussed later on this page.
|
|
|
|
|
|
|
|
|
|
|
|
Agent Graphs
An agent graph is a structural design approach used to manage how work moves through an AI-powered system. Its nodes can be ordinary functions, tool calls, human review steps, or model-driven agents; a node need not be a separate autonomous agent.
Unlike traditional linear AI interactions, which often rely on a single prompt or "messy" chat session, an agent graph organizes tasks into a managed workflow composed of jobs connected by arrows.
Core Components:
- Jobs: Individual steps in the process, such as planning, research, skepticism/checking, synthesizing information, and human approval.
- Arrows: Define the sequence and flow of the work, allowing for parallel processing, conditional branches, and loops between agents.
- State: The shared record of what the system knows at any given moment as it moves through the graph.
An explicit workflow graph makes branching, review points, and retry behavior inspectable. Reliable execution still requires an application to manage state, persist progress where needed, handle failures, and prevent retries from repeating external side effects. The graph structure alone does not provide these guarantees.
An agent graph provides the operational structure for the AI to execute tasks, while a knowledge graph provides the context and relationships for the AI to reason with. The primary difference between Agent Graphs and Knowledge Graphs lies in their functional purpose within an AI system:
- Agent Graphs: These help the AI understand how work should move. They govern the actual workflow, defining the sequence of jobs (e.g., planning, research, skepticism, synthesis) and how they interact. They provide a structural map for delegation, parallel processing, and human-in-the-loop approvals.
- Knowledge Graphs: These help the AI understand how information connects. They map relationships between entities like customers, companies, products, and teams. This allows the AI to reason across complex, interconnected data rather than just retrieving the single nearest paragraph, which is a common limitation of standard retrieval methods.
Why Graph Engineering will 10x your Claude/Codex
Greg Isenberg on why graph engineering can make Claude and Codex far more effective.
Why everyone is talking about graphs in AI (and when to skip them)
Google Cloud on why graphs matter in AI and when to skip them.
Graph Databases
- Graph Databases (GDB) | Wikipedia
- SQL ... and now GQL | Alastair Green
- What Is a Graph Database? | Amazon AWS
- Graph databases
The computing methods above need somewhere to store and serve connected data, which is the job of the graph database. A graph database stores graph data, which primarily has three types of elements: nodes, edges, and properties. It offers a more efficient way to model relationships and networks than relational (SQL) databases or other kinds of NoSQL databases (document, wide column, and so on), and it is easier to understand and manage than a relational schema when relationships are complex, inherited, inferred with varying degrees of confidence, and likely to change. A graph database is also more performant for tasks that involve traversing or querying the graph structure, such as finding all paths of up to five hops between two accounts, although relational and columnar systems remain better choices for large aggregations over flat tables.
Types of Graph Databases
The two dominant families of graph databases are Resource Description Framework (RDF) triple stores and labeled property graph (LPG) databases. RDF represents knowledge as subject-predicate-object triples, using web identifiers (IRIs) so that data from different sources can be merged, and it is queried with SPARQL. LPG databases represent knowledge as nodes and edges that carry labels plus properties in the form of key:value pairs, and they are queried with languages such as Cypher, Gremlin, and the ISO standard GQL. (The abbreviation LPG is sometimes misexpanded as "label propagation graph"; label propagation is actually a community detection algorithm, discussed under graph algorithms below.) Two further distinctions help when comparing products: native graph databases use storage designed around graph structure, while multi-model or layered systems add a graph interface on top of relational, document, or key-value storage; and transactional (OLTP) engines optimize many small, concurrent reads and writes, while analytical (OLAP) engines optimize whole-graph algorithms over large datasets.
The products below are the ones this page has tracked historically, now updated with their current status, which ranges from actively developed commercial platforms to projects that have been retired or absorbed into other products. Each entry summarizes what the product is, how it is queried, and what has changed recently. A short list of newer platforms follows at the end, because several of the most significant recent entrants come from general-purpose database vendors.
Neo4J
Neo4j is the most widely known native property graph database and the origin of the Cypher query language, which strongly influenced the ISO GQL standard. Its storage engine uses index-free adjacency, in which each node keeps direct references to its relationships, so traversal cost depends on the size of the neighborhood visited rather than the size of the whole database. Neo4j is offered as self-managed software and as the AuraDB cloud service; since 2025 it has used calendar-based version numbers, and its 2025.06 release introduced Cypher 25, a new language version that adds GQL-aligned syntax while keeping the earlier Cypher 5 available for backward compatibility. The company has also invested heavily in GraphRAG tooling, including a knowledge graph builder and the open-source neo4j-graphrag Python package.
Introduction to Neo4j and Graph Databases
Microsoft Research introduction to Neo4j and graph databases.
Amazon Neptune
Amazon Neptune is a fully managed graph database service from Amazon, announced in November 2017, that supports both the property graph model (queried with Apache TinkerPop Gremlin or openCypher, whose support became generally available in 2022) and RDF (queried with SPARQL). Neptune is widely reported to be based on Blazegraph, an open-source RDF database whose developers joined Amazon; open-source Blazegraph development essentially stopped in 2018. In November 2023 Amazon added Neptune Analytics, a separate in-memory engine that loads graphs from Neptune or Amazon S3 and runs graph algorithms, openCypher queries, and vector similarity search, which positions it for analytical and GraphRAG workloads rather than high-volume transactions.
AWS re:Invent 2018: Building a Social Graph at Nike with Amazon Neptune (DAT315)
AWS re:Invent 2018 session on how Nike built a social graph with Amazon Neptune.
JanusGraph
JanusGraph is an open-source, distributed property graph database hosted by the Linux Foundation. It was launched in January 2017 as a fork of TitanDB by a group that included Expero, Google, GRAKN.AI, Hortonworks, and IBM, after Titan's development had stalled. JanusGraph stores data in pluggable back ends such as Apache Cassandra, Apache HBase, and Oracle Berkeley DB, uses search engines such as Elasticsearch, Solr, or Lucene for indexing, and is queried through Apache TinkerPop and Gremlin; version 1.1.0 was released in November 2024.
Introduction to JanusGraph Database - Jason Plurad, IBM
Jason Plurad of IBM introduces the JanusGraph database.
TitanDB
TitanDB was a distributed graph database first released in 2012 by Aurelius, which was acquired by DataStax in 2015. After the acquisition, development slowed, with no releases after version 1.0 in September 2015, and DataStax folded the technology into its commercial DataStax Enterprise Graph product. The open-source community continued the code base as JanusGraph, so new projects should treat Titan as historical and look to JanusGraph instead.
Wellaware: Modeling the IoT with TitanDB and Cassandra
WellAware on modeling IoT data with TitanDB and Cassandra.
OrientDB
OrientDB is an open-source multi-model database, created by Luca Garulli in 2010, that combines graph and document models in a single engine and lets edges replace many SQL joins. It passed to SAP through SAP's 2018 acquisition of CallidusCloud, and after SAP stopped offering commercial support, Garulli launched ArcadeDB in 2021 as a successor with a new engine and support for SQL, Cypher, and Gremlin. A second fork, YouTrackDB, was created in December 2024 by Andrii Lomakin, the original author of OrientDB's storage engine, and community maintainers have continued publishing OrientDB development updates through 2025.
OrientDB - the 2nd generation of (MultiModel) NoSQL by Luigi Dell'Aquila
Luigi Dell'Aquila introduces OrientDB, a multi-model NoSQL database.
Giraph
Apache Giraph was an iterative graph processing system built for high scalability, modeled on Google's Pregel "think like a vertex" approach, in which computation proceeds in synchronized rounds of message passing between vertices. It became an Apache top-level project in 2012 and was used for very large social-graph analytics, but the project was retired in September 2023 and moved to the Apache Attic in February 2024. Its ideas live on in graph analytics libraries for Apache Spark and in modern analytical graph engines.
TigerGraph
TigerGraph is a commercial graph database built on what the company calls a Native Parallel Graph architecture, which distributes both storage and computation to support deep-link analytics over very large graphs. Its own query language, GSQL, supports procedural, Turing-complete graph algorithms, and the platform also accepts openCypher and GQL pattern matching; TigerGraph participated in GQL's development. In January 2025 the company launched Savanna, a cloud-native service that scales storage and compute separately, and in 2025 it added integrated graph and vector search for hybrid and GraphRAG-style applications.
Introduction to TigerGraph, A Graph Database and Analytics Platform
Introduction to TigerGraph, a graph database and analytics platform.
AnzoGraph
AnzoGraph DB, developed by Cambridge Semantics, is a massively parallel (MPP), in-memory analytical graph database designed for RDF data at very large scale and for online analytical processing over knowledge graphs. It underpins the Anzo knowledge graph and data fabric platform. Altair Engineering acquired Cambridge Semantics in April 2024 to integrate the technology into its RapidMiner analytics platform, and Altair itself became part of Siemens in 2025.
Introducing AnzoGraph DB
Cambridge Semantics introduces AnzoGraph DB.
Dgraph
Dgraph is an open-source, horizontally scalable, distributed graph database written in the Go programming language. It offers native GraphQL support alongside its own query language, DQL, and has added vector search for AI applications. The company behind it, Dgraph Labs, was acquired by Hypermode in 2023, and Istari Digital acquired Dgraph from Hypermode in October 2025.
Dgraph: The Graph Database written in Go
Introduction to Dgraph, a graph database written in Go.
Dato GraphLab
GraphLab began in 2009 as an open-source research project at Carnegie Mellon University, led by Carlos Guestrin, for running machine learning algorithms over large graphs in parallel. It became a company named GraphLab, was renamed Dato in 2015 and Turi in 2016, and its GraphLab Create product broadened into a general machine learning platform for recommendations, fraud detection, and churn prediction. Apple acquired Turi in August 2016 and later open-sourced a descendant of the toolkit as Turi Create, so the GraphLab product shown in the video below is mainly of historical interest.
Dato GraphLab - Ep. 15 (Deep Learning SIMPLIFIED)
Episode 15 of Deep Learning SIMPLIFIED on Dato GraphLab.
Other Notable Platforms
Several of the most consequential recent graph offerings come from general-purpose database and cloud vendors, or from new open-source projects, rather than from the established graph specialists above. They matter because they bring graph querying to teams that already use these platforms, often through the new GQL and SQL/PGQ standards. The list below summarizes each one's approach and current status.
- Google Spanner Graph: adds an ISO GQL-compatible graph interface to Google Cloud's globally distributed Spanner database, with full interoperability between GQL and SQL, built-in vector and full-text search, and LangChain integration for GraphRAG; it became generally available in early 2025.
- Microsoft Fabric Graph: a public-preview capability in Microsoft Fabric that builds labeled property graphs over data in OneLake, supports GQL and natural-language-to-GQL querying, and can serve as a data source for Fabric data agents; Microsoft's documentation notes that it does not yet support schema evolution.
- PostgreSQL 19 and SQL/PGQ: property-graph support appeared in development but was reverted in Beta 4 on 24 September 2026. It isn't a feature of the November 2026 final release. For graph extensions or future core support, verify the exact installed version and documentation. Official withdrawal notice
- Kuzu: an embedded, Cypher-based property graph database optimized for analytics (similar in spirit to SQLite or DuckDB), whose repository was archived in October 2025 with a final 0.11.3 release; community forks such as RyuGraph continue its code base.
- ArcadeDB and YouTrackDB: the two OrientDB successors described above, both open source and both supporting graph workloads alongside other data models.
Advantages and Disadvantages of Graph Databases
- Why Graph Databases? The Advantages of Using a Graph Database
- What Are the Major Advantages of Using a Graph Database?
- The top 5 graph database advantages for enterprises
- Advantages of graph databases: Easier data modeling, analytics
- Graph database vs. relational database: Key differences.
With the main products in view, the trade-offs of the category as a whole become easier to judge. The advantages of graph databases are usually summarized as flexibility, expressiveness, scalability, performance, and schema evolution, and each depends on the workload being genuinely relationship-centric. The list below explains each advantage along with its main caveat.
- Flexibility: Graph databases are flexible because many of them do not require a predefined schema to store data. They can accommodate heterogeneous and dynamic data, as well as complex and evolving relationships. Graph databases can also link to semi-structured or unstructured content such as text, images, or videos, typically by storing metadata, extracted entities, or embeddings as properties while the files themselves live elsewhere.
- Expressiveness: Graph databases are expressive because they can model data in a natural and intuitive way that reflects the real world. Graph databases can capture the richness and diversity of data, as well as the semantics and context of relationships. Graph databases can also support various types of queries, such as pattern matching, path finding, subgraph extraction, traversal strategies, etc.
- Scalability: Graph databases can handle large volumes of data and relationships, and many distribute data across multiple machines or clusters and use parallel processing and caching to optimize query execution. Scaling out is harder for graphs than for many other data types, however, because partitioning a densely connected graph inevitably cuts edges, and queries that cross partitions become slower; products differ widely in how well they manage this.
- Performance: Graph databases can provide fast query responses for complex and interconnected data. Native engines such as Neo4j use index-free adjacency, in which each node stores pointers to its adjacent nodes, avoiding global index lookups or joins during traversal, while other engines achieve similar results with specialized indexes, parallelism, and in-memory processing. Built-in graph algorithms further speed up analytical work such as ranking, community detection, and pathfinding.
- Schema evolution: Graph databases support schema evolution because they can adapt to changing data and requirements without affecting existing data or queries. They allow adding, removing, or modifying nodes, edges, or properties without altering a global schema, and many provide schema constraints and validation tools to keep data consistent. Support varies, though; some newer managed services, such as the Microsoft Fabric graph preview, do not yet allow structural changes after a graph model is created.
The disadvantages are usually summarized as complexity, standardization, maturity, and support, and the balance among them has shifted noticeably since GQL was published. Several of these drawbacks are shrinking as standards and mainstream database support mature, but none has disappeared. The list below explains each one.
- Complexity: Graph databases require a different mindset and skill set from relational databases. Teams must learn new concepts, such as nodes, edges, properties, and labels, as well as new query languages or APIs, such as SPARQL, Cypher, Gremlin, and GQL. Good results also depend on understanding the trade-offs of graph modeling, for example when to represent a fact as a property versus as a separate node.
- Standardization: For most of their history, property graph databases lacked a common query language, so skills and code did not transfer between products. That has changed substantially with the publication of GQL (ISO/IEC 39075:2024) and SQL/PGQ (ISO/IEC 9075-16:2023), which major vendors are now implementing, although implementations are still partial and the RDF and property graph worlds continue to use different data models and languages.
- Maturity: Graph databases are younger than relational databases, which have been refined for decades. They are still evolving features such as query optimization, distributed transactions, and tooling, and the retirement or consolidation of several projects (Titan, Giraph, Kuzu) shows that product longevity should be part of any selection decision.
- Support: Graph databases have smaller communities than relational databases, so there may be fewer experienced developers, fewer documentation resources, and fewer integrations with other systems. The gap is narrowing as cloud providers and mainstream databases add graph features, but specialized expertise remains a real cost.
Graph Data Models
- Graph Fundamentals | Kevin Feeney TerminusDB - Medium
- RDF Triple Stores vs. Labeled Property Graphs: What’s the Difference? | Jesús Barrasa - Neo4j
- Labeled Property Graph (LPG)
- Resource Description Framework (RDF) Graph
- Others
Every graph database is built on a data model, and the choice between the two main models shapes how data is identified, extended, and queried. In a labeled property graph, nodes and relationships are first-class objects that each have an internal identity, one or more labels, and a set of properties, so a relationship such as PURCHASED can directly carry a date and a price. In RDF, everything is expressed as triples of subject, predicate, and object, with globally unique web identifiers (IRIs) for resources; this makes it easy to merge data published by different organizations and to apply formal ontologies, but attaching data to a relationship has traditionally required workarounds such as reification. RDF 1.2, which reached W3C Candidate Recommendation status in 2026, addresses that gap by introducing triple terms that allow statements about other statements, narrowing one of the most cited differences between the models. The table below summarizes the main contrasts.
| Aspect | Labeled property graph (LPG) | RDF graph |
|---|---|---|
| Basic unit | Nodes and relationships with labels and key-value properties | Subject-predicate-object triples |
| Identity | Internal identifiers, local to the database | Global IRIs designed for sharing across the web |
| Properties on relationships | Native | Through reification, named graphs, or RDF 1.2 triple terms |
| Schema and semantics | Optional constraints; meaning defined by the application | RDFS and OWL ontologies with formal semantics and inference |
| Standard query languages | GQL (ISO/IEC 39075), SQL/PGQ, plus Cypher and Gremlin | SPARQL (W3C) |
| Typical strengths | Application development, traversal performance, analytics | Data integration and publishing, interoperability, reasoning |
In practice, the line between the models is blurring. Several products, including Amazon Neptune, support both models, toolkits exist for importing RDF and ontologies into property graph databases, and GraphRAG systems often use a property graph for storage while borrowing ontology concepts from the RDF world to keep extracted entities consistent. The practical question is usually less which model is better than which one fits a team's tools, data sources, and need for formal semantics.
Transformers - positional encodings specifically designed for directed graphs
- Attention Mechanism ... Transformer ... Generative Pre-trained Transformer (GPT) ... GAN ... BERT
- One-Shot Learning
- Transformers Meet Directed Graphs | S. Geisler, Y. Li, D. Mankowitz, A. Cemgil, S. Günnemann, & C. Paduraru
The data models above describe how graphs are stored; this section and the next turn to how modern neural networks can read graph structure directly, focusing on graphs whose edges have a direction. Many important graphs are directed: in source code, data flows from one statement to the next; in a citation network, one paper cites another; in a logic circuit, signals move from inputs to outputs. Standard Transformer models, built on attention, have no built-in notion of position, so they rely on positional encodings to tell them where each token sits in a sequence, and for graphs the equivalent information must describe where each node sits in the graph's structure. Most graph positional encodings were designed for undirected graphs and therefore discard edge direction, which is exactly the information that matters most in code and circuits. Click here for AI encodings and AI embedding
Transformer models have shown great versatility across modalities such as images, audio, video, and undirected graphs, but transformers for directed graphs have received comparatively little attention.
To fill that gap, researchers at the Technical University of Munich and Google DeepMind (Simon Geisler, Yujia Li, Daniel Mankowitz, Ali Taylan Cemgil, Stephan Günnemann, and Cosmin Paduraru) proposed, in a paper presented at ICML 2023, two direction- and structure-aware positional encodings for directed graphs. Both aim to give each node a description of its place in the graph that changes when edge directions change, something undirected encodings cannot do. The two encodings are:
- the eigenvectors of the Magnetic Laplacian, a direction-aware generalization of the combinatorial Laplacian;
- directional random walk encodings.
The first encoding takes the eigenvectors of the magnetic Laplacian, described in the next subsection, and feeds them to the transformer as node features, so that each node's position reflects both the shape of the graph and the direction of its edges. The second encoding runs random walks that respect edge direction, both forward along edges and backward against them, and summarizes the probabilities of reaching nearby nodes, giving the model a local picture of how information can flow. Empirically, the extra directionality information proved useful in several downstream tasks, including correctness testing of sorting networks (deciding whether a given sequence of compare-and-swap operations truly sorts every input) and source code understanding. Combined with a data-flow-centric construction of program graphs, the model outperformed the prior state of the art on the Open Graph Benchmark Code2 function-naming task by a relative 14.7%. A New AI Research From DeepMind Proposes Two Direction And Structure-Aware Positional Encodings For Directed Graphs | Tanya Malhotra - MarkTechPost
Magnetic Laplacian
To understand the magnetic Laplacian, it helps to start with the ordinary graph Laplacian. For an undirected graph with adjacency matrix A and diagonal degree matrix D, the combinatorial Laplacian is L = D − A. Its quadratic form adds up the squared differences of a signal across every edge, so it measures how smoothly a signal varies over the graph; its eigenvalues and eigenvectors reveal structure such as the number of connected components (the multiplicity of the zero eigenvalue) and natural cut points used in spectral clustering. The operator is named after Pierre-Simon Laplace (1749 to 1827), the French mathematician and physicist whose Laplace operator measures how a function's value at a point differs from its average nearby, and the graph Laplacian is its discrete analog. Because the ordinary Laplacian is symmetric, however, it cannot distinguish an edge from u to v from an edge from v to u.
The magnetic Laplacian solves that problem by moving from real numbers to complex numbers. In the formulation popularized for machine learning by the MagNet graph neural network (Zhang, He, Brugnone, Perlmutter, and Hirn, NeurIPS 2021), the graph is first symmetrized, As = ½(A + AT), with degree matrix Ds, and each entry is then multiplied by a complex phase factor: L(q) = Ds − As ⊙ exp(iΘ(q)), where Θ(q) = 2πq(A − AT) and ⊙ denotes element-wise multiplication. The magnitude of each entry still encodes the undirected structure, while the phase (the angle of the complex number) encodes direction: a one-way edge from u to v receives a phase of +2πq in one position and −2πq in the mirror position, and edges that run both ways cancel to zero phase. The resulting matrix is Hermitian and positive semidefinite, so, like the ordinary Laplacian, it has real, non-negative eigenvalues and an orthonormal basis of (complex) eigenvectors that can be used for spectral analysis. The name comes from mathematical physics, where the same operator describes a charged particle moving on a lattice in a magnetic field, with the phase factors playing the role of the magnetic potential.
The parameter q, often called the charge or potential, controls how strongly direction is expressed. When q = 0 the phase factors vanish and the magnetic Laplacian reduces to the ordinary Laplacian of the symmetrized graph, discarding all direction information; as q increases toward 0.25, one-way edges receive larger phase shifts and the encoding becomes more sensitive to direction. The sign of the phase records which way an edge points, and different values of q highlight different directed patterns, such as long chains or cycles of particular lengths. For that reason MagNet learns q from data, and Geisler and colleagues chose q relative to properties of the graph rather than using a single fixed value.
A graph kernel is a function that measures the similarity between graphs or between nodes within a graph. Kernels built from the magnetic Laplacian, such as heat or diffusion kernels computed from its eigenvectors, can take edge direction into account.
Because the magnetic Laplacian supplies direction-aware spectral features, it has been used or proposed for a range of AI tasks on directed graphs. The established applications come mainly from the MagNet line of work and from spectral clustering research, while some of the extensions listed here are active research directions rather than settled practice. Each entry notes how direction-aware spectral features help with that task.
- Node classification: magnetic Laplacian eigenvectors, or graph neural networks such as MagNet that filter signals with the magnetic Laplacian, give each node features that reflect its position in directed flows; MagNet reported strong results on directed node classification benchmarks compared with both spectral and spatial graph neural networks.
- Link prediction: is the task of predicting whether two nodes will be connected by an edge, and for directed graphs also which way the edge points. Node representations derived from the magnetic Laplacian's eigenvectors can be compared, or fed to a classifier such as a support vector machine, logistic regression model, or neural network, to score candidate edges; MagNet was evaluated on both existence and direction prediction. Note that the eigenvalues themselves describe the whole graph rather than individual pairs of nodes, so pairwise scores come from the eigenvectors or learned embeddings.
- Recommender systems: user-item interactions often have an order or direction (a user who watched A then watched B), which direction-aware representations can preserve. Proposed approaches include using magnetic Laplacian embeddings as features for recommendation models and using Laplacian-based penalties to regularize matrix factorization or collaborative filtering so that connected items receive similar representations, a standard remedy for overfitting on sparse data. These uses are plausible extensions of well-established undirected techniques rather than a mature body of directed-graph results.
- Community detection: as with the ordinary Laplacian, the eigenvectors associated with the smallest eigenvalues of the magnetic Laplacian can be clustered to find groups of nodes; with direction encoded, this can also find groups defined by consistent flow between them, not only by dense connections. The magnetic Laplacian has a substantial literature in community detection and clustering of directed graphs.
- Forecasting: in directed networks such as road traffic, supply chains, and information cascades, the direction of influence matters for prediction. Direction-aware spectral features can be combined with temporal models for forecasting, an active area that builds on spatiotemporal graph models such as the Spatial-Temporal Dynamic Network (STDN).
- Diffusion of information: spectral methods describe how signals spread through a graph, and the magnetic Laplacian extends this graph signal processing view to directed graphs, where spreading is asymmetric.
- Social network analysis: follower networks, retweets, and email are inherently directed, so the magnetic Laplacian can support several tasks in social network analysis:
- Identify influential nodes: spectral embeddings can feed centrality or ranking models, and the phases of a node's eigenvector entries carry information about where it sits along directed paths, which helps separate sources of information (such as original posters) from sinks (such as passive followers). Influence itself is usually measured with established centrality metrics such as PageRank, using these features as inputs.
- Detect communities: clustering the eigenvectors associated with the smallest eigenvalues groups accounts that are densely or consistently connected.
- Predict links: comparing node embeddings derived from the magnetic Laplacian helps estimate which accounts are likely to connect, and in which direction.
- In addition to these specific applications, the magnetic Laplacian can also support other social network analysis tasks:
- Analyze the diffusion of information: modeling how content propagates along directed follower and sharing relationships.
- Study the evolution of social networks: tracking how the magnetic Laplacian's spectrum and eigenvectors change over time can reveal shifts in community structure and in the direction of influence.
The magnetic Laplacian is a valuable tool for AI on directed graphs because it captures direction without giving up the convenient mathematical properties, real eigenvalues and orthogonal eigenvectors, that make spectral methods work. Its use in graph neural networks such as MagNet and in direction-aware transformer encodings has made it increasingly popular in research. Practical limitations remain: computing eigenvectors is expensive for very large graphs, complex eigenvectors are defined only up to a phase factor (the analog of the sign ambiguity of real eigenvectors), which models must handle carefully, and the best choice of q depends on the graph, so results should be validated on the specific task at hand.

Graph Query Programming
Whether a graph lives in a native database, a cloud service, or a relational system, people and applications reach it through a query language, and the choice of language shapes how easily questions can be expressed. Graph query programming is the practice of writing queries to retrieve or manipulate data from a graph database, and graph query languages can be declarative or imperative. Declarative languages, such as Cypher, GQL, and SPARQL, specify what data to retrieve without specifying how to retrieve it, leaving the database's optimizer to choose an execution plan; imperative or traversal-style approaches, such as Gremlin's step-by-step traversals or a program written against a database's API, specify both what to do and how to do it.
Most graph query languages share a core set of features: pattern matching, filtering, projection, aggregation, ordering, grouping, path finding, subgraph extraction, and traversal strategies. Their recurring challenges are balancing expressiveness against efficiency, optimizing queries whose cost can explode with path length, and standardization, which GQL and SQL/PGQ now address for property graphs. With natural-language-to-query tools such as Text2Cypher and NL2GQL, these languages have also become an interface for LLMs, which makes clear, standard syntax even more valuable.
How to Build a Semantic Search System - Trey Grainger, Lucidworks
Trey Grainger of Lucidworks on building a semantic search system.
Natural Language Search with Knowledge Graphs - Trey Grainger, Lucidworks
Trey Grainger on natural language search with knowledge graphs.
Examples of Graph Query Programming Languages
- Semantic Web technologies:
- Web Ontology Language (OWL) | W3C designed to represent rich and complex knowledge about things, groups of things, and relations between things
- Resource Description Framework (RDF) | W3C a standard model for data interchange on the Web
- SPARQL Protocol and RDF Query Language queries against what can loosely be called "key-value" data or, more specifically, data that follow the RDF specification
The languages in common use fall into a few groups, and the subsections below describe each in turn. Declarative graph query languages include SPARQL (for RDF graphs), Cypher and its open specification openCypher (for property graphs), GQL (the ISO standard for property graphs), PGQL (Oracle's SQL-like property graph language), and SQL/PGQ (graph pattern matching inside SQL). Gremlin, from Apache TinkerPop, is a traversal language for property graphs that supports both imperative and declarative styles. GraphQL, despite its name, is not a graph database query language at all but a query language for web APIs; it appears here because some graph databases, such as Dgraph, expose it natively. Finally, general-purpose programming languages such as Python and Java are used imperatively through database drivers and libraries, for example Neo4j's embedded Java API or graph analysis libraries such as NetworkX.
GraphQL
Youtube search... ...Google search
- GraphQL
- GraphiQL is the reference implementation of GraphQL IDE, an official project under the GraphQL Foundation
- GitHub GraphQL API
- Graph Convolutional Network (GCN), Graph Neural Networks (Graph Nets), Geometric Deep Learning
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. Originally developed at Facebook and released in 2015, it is now maintained by the GraphQL Foundation under the Linux Foundation. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools. GraphQL queries access not just the properties of one resource but also smoothly follow references between them, so while typical REST APIs require loading from multiple URLs, GraphQL APIs can get all the data an app needs in a single request, which keeps apps quick even on slow mobile network connections. The September 2025 edition of the specification, the first since October 2021, added features such as OneOf input objects and descriptions on executable documents, the latter intended in part to give AI assistants and code generators richer context.
What Is GraphQL?
Syntax explains what GraphQL is.
Working with the GitHub GraphQL API - Day 8
Ben Awad works with the GitHub GraphQL API.
A quick tour of GitHub's GraphQL API
Quick tour of GitHub's GraphQL API.
GraphQL Full Course - Novice to Expert
freeCodeCamp's full GraphQL course from novice to expert.
With Python
Dave Anderson - Building Evolutionary API with GraphQL and Python - PyCon 2019
Dave Anderson's PyCon 2019 talk on building evolving APIs with GraphQL and Python.
Alec MacQueen - Python and GraphQL
Alec MacQueen on using GraphQL with Python.
Intro to GraphQL with Python
Introduction to GraphQL with Python.
Building API's with Django and GraphQL
Building APIs with Django and GraphQL.
GraphQL Tutorial with Django (Python) and Excel - Code from Scratch
GraphQL tutorial with Django and Excel, coded from scratch.
Talks - Django Graphene | CODED Factory
Talk on Graphene for GraphQL in Django.
Cypher
Youtube search... ...Google search
- openCypher.org - Originally contributed by Neo4j; transition planning from openCypher implementations to the developing graph query language standard, GQL
Cypher is a declarative query language for property graphs, created at Neo4j, that describes the patterns to find using an ASCII-art style syntax in which nodes appear in parentheses and relationships as arrows, as in MATCH (a:Actor)-[:ACTED_IN]->(m:Movie) RETURN m.title. Through the openCypher project it was adopted by many other systems, including Amazon Neptune, and it became one of the main inputs to the GQL standard, so much so that simple queries like the one above are valid in both languages. Neo4j now maintains two versions: Cypher 5, frozen for backward compatibility, and Cypher 25, introduced in 2025, which continues to add GQL-aligned features.
Intro to Graph Databases Episode #5 - Cypher, the Graph Query Language
Neo4j introduces Cypher, its graph query language.
Intro to Cypher
Introduction to the Cypher query language.
Graph Query Language (GQL)
Youtube search... ...Google search
GQL is the international standard query language for property graphs, published by ISO and IEC as ISO/IEC 39075:2024 on April 12, 2024, after work that began with industry proposals in 2016 and a formal project approved in 2019. It was developed by the same ISO committee responsible for SQL and is the first new ISO database query language since SQL; the standard runs to more than 600 pages and defines graph-specific data types, a graph type system, and a rich pattern-matching language. GQL draws heavily on existing languages: the main inspirations have been Cypher (which had more than ten implementations, including six commercial products, as the GQL effort got under way), Oracle's PGQL, and SQL itself. SQL ... and now GQL | Alastair Green
GQL has a companion in SQL/PGQ (ISO/IEC 9075-16:2023), a new part of the SQL standard published a year earlier, which lets SQL users run read-only, property-graph-style pattern-matching queries on top of ordinary SQL tables; the two share the same pattern-matching core. Adoption is now under way: Neo4j's Cypher 25 supports most mandatory GQL features, Google Spanner Graph and Microsoft Fabric's graph preview offer GQL interfaces, TigerGraph supports GQL pattern matching, while PostgreSQL 19 withdrew its planned SQL/PGQ support before release. Because both standards share much of their syntax with Cypher, existing Cypher skills transfer readily, which lowers the barrier to adoption.
Neo4j Online Meetup #37 :GQL: It’s Time for a Single Property Graph Query Language
Neo4j meetup on GQL, a single standard property graph query language.
Gremlin
Youtube search... ...Google search
- Wikipedia
- Intro to Graph Databases Using Tinkerpop, TitanDB, and Gremlin | Caleb Jones
- Gremlin Graph Traversal Machine and Language
- TinkerPop
Gremlin is a graph traversal language and virtual machine developed by Apache TinkerPop of the Apache Software Foundation. It works for both OLTP-based graph databases and OLAP-based graph processors, and a single Gremlin traversal can be written either as an imperative sequence of steps or in a more declarative, pattern-matching style. As an explanatory analogy, Apache TinkerPop and Gremlin are to graph databases what JDBC and SQL are to relational databases, and the Gremlin traversal machine is to graph computing what the Java virtual machine is to general-purpose computing. Because many systems implement the TinkerPop interfaces, including JanusGraph, Amazon Neptune, and ArcadeDB, Gremlin remains a portable choice for property graph applications, even as GQL emerges as the declarative standard.
Traversing Graphs with Gremlin (Artem Chebotko, Solutions Architect at DataStax)
Artem Chebotko on traversing graphs with Gremlin.
Oracle Property Graph (PGQL)
Youtube search... ...Google search
- Property Graph Query Language is a query language built on top of SQL, bringing graph pattern matching capabilities to existing SQL users as well as to new users who are interested in graph technology but who do not have an SQL background.
PGQL was developed at Oracle as a SQL-like language for property graphs, and its design, along with Cypher, fed directly into SQL/PGQ and GQL. Its value today is partly historical and partly practical: it shows how graph patterns can be embedded in familiar SELECT and FROM syntax, which is the approach the SQL/PGQ standard ultimately adopted. Developers working with Oracle's graph features will encounter it, while new cross-vendor work increasingly targets the ISO standards.
Property Graph Query Language - introduction and training
Introduction and training on the Property Graph Query Language.
SPARQL
Youtube search... ...Google search
SPARQL is the W3C standard query language for RDF data, first published as a Recommendation in 2008 and extended by SPARQL 1.1 in 2013 with updates, aggregates, subqueries, and federated queries across multiple endpoints. Queries are written as triple patterns with variables, which the engine matches against the graph, and the results can be tables, true or false answers, or new RDF graphs. SPARQL 1.2 is being developed alongside RDF 1.2 to support triple terms, and SPARQL remains the language of choice for linked open data and ontology-rich knowledge graphs.
4.1 How to Query RDFS SPARQL
OpenHPI lesson on querying RDFS with SPARQL.
4.2 Complex Queries with SPARQL
OpenHPI lesson on complex SPARQL queries.
Graph Algorithms
Query languages retrieve specific patterns, but many of the most valuable insights in a graph come from algorithms that analyze its overall structure. Graph algorithms are algorithms that operate on graphs or use graphs as data structures, and they are used for purposes such as finding shortest paths, detecting communities or clusters, measuring centrality or importance, and identifying patterns or anomalies. They also do much of the work behind the AI techniques on this page: PageRank variants rank nodes for retrieval in HippoRAG, the Leiden community detection algorithm structures Microsoft's GraphRAG, and random walks generate training data for node embeddings.
Algorithms Course - Graph Theory Tutorial from a Google Engineer
freeCodeCamp graph theory algorithms course from a Google engineer.
Top 10 Graph Algorithms you must know before Programming Interview | GeeksforGeeks
GeeksforGeeks covers ten graph algorithms to know before a programming interview.
Graph Analytics: Graph Algorithms inside Neo4j — Amy Hodler and Michael Hunger, Neo4j
Amy Hodler and Michael Hunger on graph algorithms in Neo4j.
Categories of Graph Algorithms
Graph algorithms can be categorized by the question they answer. Traversal algorithms such as breadth-first and depth-first search visit nodes systematically; pathfinding algorithms such as Dijkstra, Bellman-Ford, Floyd-Warshall, and A* find shortest or cheapest routes; minimum spanning tree algorithms such as Prim's and Kruskal's connect all nodes at the lowest total cost; centrality algorithms such as degree, betweenness, and PageRank measure importance; community detection algorithms such as Louvain, Leiden, and label propagation find densely connected groups; and similarity and link prediction algorithms estimate which nodes resemble each other or are likely to connect. The classic algorithms below, each paired with a video walkthrough, form the foundation that more advanced methods build on.
Breadth First Search (BFS)
Breadth-first search explores a graph level by level, visiting all neighbors of the starting node before moving to their neighbors, using a queue to track the frontier. It runs in time proportional to the number of nodes plus edges, and in an unweighted graph it finds the shortest path (fewest edges) from the start to every reachable node. BFS underlies "degrees of separation" queries in social networks, web crawlers, and the neighborhood expansion step in many GraphRAG retrievers.
Breadth First Search - BFS algorithm
Explains the breadth-first search (BFS) algorithm.
Depth-First Search Algorithm (DFS)
Depth-first search follows one path as far as it can before backtracking, typically using recursion or a stack, and it also runs in time proportional to the number of nodes plus edges. Its value lies in the structure it reveals: DFS detects cycles, produces a topological ordering of a directed acyclic graph (for example, an order in which build tasks or data pipeline steps can run), and finds connected and strongly connected components. It is less suitable than BFS for shortest paths but uses less memory on wide graphs.
Depth-First Search Algorithm DFS
Explains the depth-first search (DFS) algorithm.
Dijkstra's Algorithm for Single-Source Shortest Path
Dijkstra's algorithm, published by Edsger Dijkstra in 1959, finds the shortest paths from one source node to all others in a graph whose edge weights are non-negative. It repeatedly selects the unvisited node with the smallest known distance, using a priority queue, and relaxes the edges leaving it; with a binary heap it runs in time proportional to (V + E) log V. It powers road navigation and link-state network routing protocols such as OSPF in telecommunications, and its A* extension adds a heuristic estimate of the remaining distance to search even faster.
Dijkstras Algorithm for Single-Source Shortest Path
Explains Dijkstra's algorithm for single-source shortest paths.
Dijkstras Algorithm Directed Graph Example
Worked example of Dijkstra's algorithm on a directed graph.
Prim's Algorithm for Minimum Spanning Trees
A minimum spanning tree connects every node of a weighted, undirected graph using the subset of edges with the lowest total weight and no cycles. Prim's algorithm grows the tree from a starting node, always adding the cheapest edge that connects the tree to a new node, and with a priority queue it runs in time proportional to E log V. Minimum spanning trees are used in network and circuit design and in approximation algorithms for harder routing problems.
Prims Algorithm for Minimum Spanning Trees
Explains Prim's algorithm for minimum spanning trees.
Kruskal's Algorithm for Minimum Spanning Trees
Kruskal's algorithm builds a minimum spanning tree from the other direction: it sorts all edges by weight and adds them one at a time, skipping any edge that would create a cycle, which it detects efficiently with a union-find data structure. Its running time is dominated by the sort, proportional to E log E, so it is often preferred for sparse graphs. Stopping Kruskal's algorithm before it finishes yields groups of nearby points, which is equivalent to single-linkage hierarchical clustering.
Kruskals Algorithm for Minimum Spanning Trees
Explains Kruskal's algorithm for minimum spanning trees.
Bellman-Ford Single-Source Shortest-Path Algorithm
The Bellman-Ford algorithm also finds single-source shortest paths but, unlike Dijkstra's algorithm, it works when some edge weights are negative. It relaxes every edge repeatedly, V − 1 times, giving a running time proportional to V × E, and a final pass detects negative-weight cycles, for which no shortest path exists. That ability makes it useful in finance for spotting currency arbitrage loops, and its distributed form underlies distance-vector routing protocols such as RIP.
Bellman-Ford Single-Source Shortest-Path algorithm
Explains the Bellman-Ford shortest-path algorithm.
Bellman Ford Algorithm Example
Worked example of the Bellman-Ford algorithm.
Floyd Warshall Algorithm
The Floyd-Warshall algorithm computes shortest paths between every pair of nodes at once using dynamic programming: it considers each node in turn as a possible intermediate stop and updates all pairwise distances accordingly. It runs in time proportional to V³, which makes it practical for dense graphs with up to a few thousand nodes, and it handles negative edge weights as long as there are no negative cycles. All-pairs distance tables of this kind support tasks such as network diameter analysis and precomputed routing tables.
Floyd Warshall Graph Traversal Algorithm: All-pairs Shortest-paths
Explains the Floyd-Warshall all-pairs shortest-path algorithm.
Floyd Warshall Algorithm on Undirected Graph - Dynamic Programming Example
Worked example of Floyd-Warshall on an undirected graph.
Cybersecurity - Visualization
YouTube search... ...Google search
Security is one of the clearest applications of the graph algorithms and visualization techniques above, because attacks are fundamentally about connections. Hosts, users, processes, IP addresses, and files become nodes, while logins, network flows, and process launches become edges, so an intrusion appears as a path: initial access on one machine, credential theft, lateral movement, and finally access to valuable data. Graph analytics help analysts find these paths, spot unusual connections with anomaly detection, and identify the few choke points whose protection would block many attack routes. The talks below show how graph visualization tools such as KeyLines, Linkurious, and Graphistry turn overwhelming security logs into structures analysts can explore.
|
|
|
|
The Trick That Solves Rubik’s Cubes and Breaks Ciphers (Meet in the Middle)
Youtube search... ...Google search
Meet in the middle is a search strategy that shows how thinking of a problem as a graph can change what is computationally possible, and it has direct consequences for security. Every configuration of a Rubik's Cube, or every possible key in a cipher, can be treated as a node, with edges for legal moves or encryption steps. Instead of searching forward from the start until the goal is reached, the algorithm searches forward from the start and backward from the goal at the same time and looks for a configuration where the two searches meet, which reduces the work from roughly bd steps to about 2 × bd/2, where b is the number of choices per step and d is the depth of the solution. In cryptography, the same idea is the meet-in-the-middle attack described by Whitfield Diffie and Martin Hellman in 1977, which explains why encrypting twice with two keys (as in "double DES") adds far less security than expected and why Triple DES uses three encryption stages instead.
The trick that solves Rubik’s Cubes and breaks ciphers
Polylog explains the meet-in-the-middle trick used to solve Rubik's Cubes and break ciphers.
Additional Viewing
The videos below were selected to deepen specific sections of this page, with an emphasis on substantive talks by researchers, standards editors, and practitioners. They complement the galleries above, which concentrate on earlier introductions to graph databases and graph-enhanced AI. Each description notes which part of the article the video supports.
GraphRAG: The Marriage of Knowledge Graphs and RAG by Emil Eifrem, co-founder and CEO of Neo4j, recorded at the AI Engineer World's Fair 2024 (about 19 minutes). Eifrem traces the evolution of search from link analysis to knowledge graphs to GraphRAG, explains the core pattern of combining vector search with graph traversal, and demonstrates a tool that builds knowledge graphs from documents. It is a practical companion to the GraphRAG section, although its accuracy claims are a vendor's perspective and should be read alongside the independent evaluations discussed there.
GraphRAG methods to create optimized LLM context windows for retrieval by Jonathan Larson of Microsoft Research, who leads the team behind GraphRAG, recorded at the AI Engineer World's Fair 2025 (about 15 minutes). Larson shows GraphRAG applied to repository-level code understanding, including translating a multi-file program into Rust and analyzing a much larger code base, and introduces LazyGraphRAG and the BenchmarkQED evaluation tool. It extends the Variants and Design Patterns and Recent Developments sections with Microsoft's own view of where the method is heading.
ISO GQL: A New Database Query Language, a Neo4j panel with GQL project editor Stefan Plantikow, Neo4j CTO Philip Rathle, and developer advocate Andreas Kollegger (about 64 minutes). The panel explains why a standard property graph language was needed, how GQL's pattern matching relates to Cypher and SQL, and how the standard may interact with knowledge graphs and generative AI. It provides essential background for the GQL and Cypher subsections and for the standardization discussion under graph database disadvantages.
RDF vs. Property Graph: Is your Graph Semantic? by Jesús Barrasa of Neo4j, a technical talk that delivers a detailed comparison of the RDF and property graph models. Barrasa, who has worked across both the semantic web and graph database communities, frames the comparison around what it means for a graph to be "semantic." It is the most direct companion to the Graph Data Models section and its comparison table.
Transformers Meet Directed Graphs, the long-form presentation of the ICML 2023 paper by Simon Geisler and colleagues, linked from the Technical University of Munich project page. The presentation covers the paper's motivation, its two direction-aware positional encodings, and its experiments on sorting networks and source code. It is the primary companion to the directed-graph transformers and Magnetic Laplacian sections.
References
- Artificial General Intelligence (AGI) to Singularity ... Curiosity ... Emergence ... Moonshots ... Explainable AI ... Automated Learning
- Telecommunications ... Computer Networks ... 5G ... Satellite Communications ... Quantum Communications ... Smart Cities ... Digital Twin ... Internet of Things (IoT) ... Space-based Data Centers
- Graph Convolutional Network (GCN), Graph Neural Networks (Graph Nets), Geometric Deep Learning
- Data Science ... Governance ... Preprocessing ... Exploration ... Interoperability ... Master Data Management (MDM) ... Bias and Variances ... Datasets
- Connected Papers using Semantic Scholar to explore connected papers in a visual graph
- Knowledge graph | Wikipedia
- An Introduction to Knowledge Graphs | SAIL Blog
- A Beginner's Guide to Graph Analytics and Deep Learning | Chris Nicholson - A.I. Wiki pathmind
- 7 Ways Your Data Is Telling You It’s a Graph | Karen Lopez - InfoAdvisors - Neo4j
- Linked Data Patterns book | leigh Dodds and Ian Davis
- A Guide To Knowledge Graphs | Mohit Mayank - TOPBOTS
- Graph databases and knowledge graphs with examples | Resolute
- What is a knowledge graph and how are they changing data analytics?
- When to use graph databases, ontologies, and knowledge graphs
- ISO/IEC 39075:2024 Information technology, Database languages, GQL | ISO/IEC JTC 1/SC 32 The official catalog entry for the GQL standard, published April 2024, which defines data structures and operations for property graphs.
- Graph Query Language | Wikipedia Background on GQL's history, its 2019 project approval, its relationship to SQL/PGQ (ISO/IEC 9075-16:2023), and its influences, including Cypher and PGQL.
- From Local to Global: A GraphRAG Approach to Query-Focused Summarization | D. Edge, H. Trinh, et al. - Microsoft Research The original GraphRAG paper (April 2024), introducing community-summary indexing and reporting improved comprehensiveness and diversity on global sensemaking questions.
- GraphRAG Query Engine | Microsoft Documentation for GraphRAG's local, global, DRIFT, and basic search methods.
- Introducing DRIFT Search | Microsoft Research Describes DRIFT search and Microsoft's reported comprehensiveness and diversity results against local search.
- LazyGraphRAG: Setting a new standard for quality and cost | Microsoft Research Introduces deferred-summarization GraphRAG with indexing costs comparable to vector RAG; later updated to note integration into Microsoft Discovery and Azure Local.
- Graph Retrieval-Augmented Generation: A Survey | B. Peng et al. A 2024 survey that formalizes GraphRAG as graph-based indexing, graph-guided retrieval, and graph-enhanced generation.
- RAG vs. GraphRAG: A Systematic Evaluation and Key Insights | H. Han et al. - Michigan State University, University of Oregon, Meta A controlled comparison finding that RAG and GraphRAG are complementary and that LLM-as-judge evaluations show position effects.
- GraphRAG-Bench | GitHub Benchmark and resources from "When to use Graphs in RAG," which examines the conditions under which graph structure helps retrieval.
- HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models | B. Jiménez Gutiérrez et al. - Ohio State University NeurIPS 2024 paper combining LLMs, knowledge graphs, and Personalized PageRank for single-step multi-hop retrieval.
- From RAG to Memory: Non-Parametric Continual Learning for Large Language Models | B. Jiménez Gutiérrez et al. The HippoRAG 2 paper (2025), extending graph-based retrieval toward continual learning.
- LightRAG: Simple and Fast Retrieval-Augmented Generation | Z. Guo et al. - University of Hong Kong Dual-level graph and vector retrieval with incremental updates; published in Findings of EMNLP 2025.
- Unifying Large Language Models and Knowledge Graphs: A Roadmap | S. Pan et al. - IEEE TKDE The 2024 roadmap defining KG-enhanced LLMs, LLM-augmented KGs, and synergized LLM and KG systems.
- Effortless RAG with Text2CypherRetriever | Neo4j Explains natural-language-to-Cypher retrieval in the open-source neo4j-graphrag Python package.
- Transformers Meet Directed Graphs | Technical University of Munich Project page for the ICML 2023 paper, with code, pretrained models, and video presentations.
- MagNet: A Neural Network for Directed Graphs | X. Zhang, Y. He, N. Brugnone, M. Perlmutter, M. Hirn - NeurIPS 2021 Introduces a graph neural network built on the complex Hermitian magnetic Laplacian, with a charge parameter that controls directional sensitivity.
- GQL conformance | Neo4j Cypher Manual Documents which mandatory and optional GQL features Cypher 25 supports.
- Neo4j 2025.06 Release Notes | Neo4j Announces support for two Cypher versions, the frozen Cypher 5 and the evolving Cypher 25.
- Amazon Neptune Analytics is now generally available | Amazon Web Services November 2023 announcement of Neptune's in-memory analytics engine with graph algorithms and vector search.
- Amazon Neptune | Wikipedia History of Neptune, including its supported models and query languages and its reported Blazegraph origins.
- Spanner Graph overview | Google Cloud Describes Spanner Graph's ISO GQL-compatible interface, SQL interoperability, vector search, and GraphRAG integrations.
- Google Releases Spanner Graph into General Availability | InfoQ February 2025 report on Spanner Graph's general availability.
- Graph in Microsoft Fabric | Microsoft Learn Documentation for Fabric's public-preview graph capability, including GQL, NL2GQL, and current limitations.
- PostgreSQL 19 Beta 4 | PostgreSQL Global Development Group Records the withdrawal of SQL/PGQ property-graph support before the final release. Earlier beta articles are historical.
- TigerGraph Launches Savanna Cloud Platform | AIwire January 2025 announcement of TigerGraph Savanna and its support for GSQL, openCypher, and GQL.
- JanusGraph connects the past and future of Titan | Google Open Source Blog Announcement of JanusGraph as a Linux Foundation fork of TitanDB in January 2017.
- Apache Giraph | Apache Attic Records Giraph's retirement in September 2023 and move to the Attic in February 2024.
- Welcome to ArcadeDB, the new official fork of OrientDB | Luca Garulli The 2021 announcement of ArcadeDB by OrientDB's creator.
- Cambridge Semantics | Wikipedia Covers AnzoGraph DB and the 2024 acquisition of Cambridge Semantics by Altair.
- Istari Digital Acquires Dgraph | PR Newswire October 2025 announcement of Istari Digital's acquisition of Dgraph from Hypermode.
- Apple expands its AI lineup by acquiring machine learning startup Turi | SiliconANGLE Reports Apple's 2016 acquisition of Turi, formerly Dato and GraphLab.
- kuzu | Python Package Index Notes that the Kuzu embedded graph database project has been archived.
- RDF 1.2 Concepts and Abstract Data Model | W3C The 2026 Candidate Recommendation that adds triple terms and directional language-tagged strings to RDF.
- ISO/IEC 21838-2:2021 Top-level ontologies, Part 2: Basic Formal Ontology (BFO) | ISO/IEC The international standard describing BFO as a top-level ontology.
- Introducing the Knowledge Graph: things, not strings | Amit Singhal - Google Google's May 2012 announcement of its Knowledge Graph.
- Announcing the September 2025 Edition of the GraphQL Specification | GraphQL Foundation Describes the first GraphQL specification edition since 2021 and its features for AI-assisted tooling.