Graph search encompasses algorithms that systematically traverse graph-structured state spaces — sets of nodes (states) connected by edges (transitions) — to discover paths, optimal solutions, or reachable configurations satisfying given criteria. Classical uninformed methods (Breadth-First Search, Depth-First Search, Dijkstra) provide completeness and optimality guarantees on finite discrete graphs; informed heuristic methods (A*, IDA*, weighted A*) accelerate search using problem-specific cost estimates; sampling-based planners (RRT, PRM, RRT*) extend graph search to high-dimensional continuous configuration spaces by building implicit graphs from random samples. Graph search is the algorithmic backbone of robot motion planning, AI planning, knowledge graph querying, route navigation, and game-tree evaluation.

Overview

  • Graph search is one of the oldest and most thoroughly studied problem classes in computer science, dating from the 19th-century mathematical work on Eulerian paths and formalised computationally in the mid-20th century by Moore (BFS, 1959) and Dijkstra (shortest paths, 1959).
  • The central task is to find, within a graph G = (V, E), a path from a source node s to a goal node g satisfying a cost or constraint criterion (shortest, least cost, time-bounded, etc.).
  • Why it matters:
    • Almost every AI problem with discrete structure can be cast as graph search: game playing, theorem proving, scheduling, protein folding, circuit layout, and more.
    • The quality of a search strategy — completeness, optimality, time complexity, space complexity — determines feasibility for real-world problem sizes.
    • Modern AI systems often combine classical graph search with Machine Learning (learned heuristics, neural value functions) to scale to previously intractable problem instances.
  • Core properties of search algorithms:
    • Completeness: guarantees finding a solution if one exists.
    • Optimality: guarantees finding the lowest-cost solution.
    • Time complexity: typically expressed in terms of branching factor b and depth d.
    • Space complexity: the memory footprint of the open/closed frontier.

Key Components

Graph Representation

  • Graph Data Structure: the underlying adjacency list, adjacency matrix, or implicit expansion function.
  • Explicit graphs: all nodes and edges stored in memory (road maps, knowledge graphs).
  • Implicit graphs: nodes generated on-demand by applying transition operators to the current state (puzzle solving, planning).
  • Weighted graphs: edges carry costs (distances, times, probabilities) as in Dijkstra Algorithm and A* Search.
  • Directed vs. undirected: direction matters for reachability (e.g., one-way streets in Route Planning).
  • Breadth-First Search (BFS): expands nodes layer by layer; complete and optimal for uniform-cost edges; O(b^d) time and space.
  • Depth-First Search (DFS): follows a single path as deep as possible before backtracking; low memory but not optimal; the basis of Backtracking and Recursive Descent.
  • Iterative Deepening DFS (IDDFS): combines BFS’s completeness with DFS’s space efficiency; preferred when the solution depth is unknown.
  • Dijkstra Algorithm: shortest-path algorithm on weighted graphs using a Priority Queue; O((V + E) log V) with a binary heap; optimal when edge weights are non-negative.
  • Uniform-Cost Search: generalisation of Dijkstra to implicit state spaces; foundational in AI textbooks.
  • *[[A Search]]**: combines path cost g(n) and admissible heuristic h(n) into f(n) = g(n) + h(n); finds optimal solutions when h never overestimates; the workhorse of Route Planning and Motion Planning.
  • IDA* (Iterative Deepening A*): memory-efficient variant of A*, expanding nodes up to an f-cost threshold that increases each iteration.
  • Weighted A*: trades optimality guarantee for speed by inflating the heuristic (f = g + w·h, w > 1); common in time-critical robotics.
  • Bidirectional search: simultaneously expands from source and goal, meeting in the middle; reduces effective search depth from d to d/2.
  • Heuristic Function design: admissibility and consistency (monotonicity) are the key theoretical constraints; problem-specific heuristics derived from relaxed problems, pattern databases, or learned models.

Anytime and Incremental Methods

  • Anytime A* / ARA*: begins with an inflated heuristic for fast suboptimal solutions, then iteratively tightens the bound within available computation time.
  • D* / D* Lite: incremental replanning algorithms that efficiently update the search tree when edge costs change; critical for Autonomous Navigation in dynamic environments.
  • Lifelong Planning A* (LPA*): propagates cost changes from the source, maintaining optimality across repeated queries on the same graph.

Sampling-Based Planners

  • RRT (Rapidly-exploring Random Tree): builds a tree by extending toward random samples in Continuous Configuration Space; probabilistically complete; foundational for Motion Planning in high-dimensional spaces.
  • RRT*: asymptotically optimal extension of RRT that rewires the tree to minimise path cost; convergence is gradual but guaranteed.
  • PRM (Probabilistic Roadmap Method): offline phase builds a roadmap by connecting random configurations; online phase queries the roadmap; excels at multi-query settings.
  • SPARS / BIT*: informed and batch variants that converge faster by focusing sampling in the relevant heuristic ellipse.
  • Minimax: searches the game tree assuming rational opponents; alternates maximising and minimising layers.
  • Alpha-Beta Pruning: prunes branches in minimax that cannot influence the final decision; reduces effective branching factor from b^d to b^(d/2).
  • Monte Carlo Tree Search (MCTS): combines random roll-outs with UCB selection to estimate node values without an explicit heuristic; underlies AlphaGo/AlphaZero.

Applications

Robotics and Autonomous Systems

  • Path planning for mobile robots in static and dynamic environments using D* Lite and Motion Planning stacks (e.g., ROS MoveIt).
  • Manipulation planning for robotic arms: searching through Joint Space configurations to reach a target end-effector pose while avoiding collisions.
  • Multi-robot coordination: searching joint configuration spaces or market-based task allocation graphs.
  • Autonomous Navigation in self-driving vehicles: hierarchical graph search over road networks combined with sampling-based local planners.

Artificial Intelligence and Planning

  • Classical Automated Planning (STRIPS, PDDL) represents actions as graph edges and searches for action sequences achieving goal states (LAMA, FastDownward planners).
  • Puzzle solving: 15-puzzle, Rubik’s Cube solved via bidirectional A* and pattern databases.
  • Game Tree Search in board games (chess engines use alpha-beta + heuristics; AlphaZero uses MCTS + neural networks).
  • Theorem proving and program synthesis expressed as proof-search or synthesis-search over expression graphs.

Knowledge Graph and Semantic Web

  • Shortest path and subgraph reachability queries on Knowledge Graphs (e.g., Wikidata, Freebase, Neo4j).
  • Entity linking and semantic similarity computed via graph distance metrics.
  • Ontology reasoning: concept subsumption checking via graph traversal over Class Hierarchy.
  • SPARQL query evaluation over RDF graphs effectively reduces to graph-pattern matching.

Networks and Infrastructure

  • Internet Routing Protocols: OSPF uses Dijkstra to compute shortest-path trees; BGP uses path-vector graph search.
  • Social network analysis: finding shortest social distances, influential nodes, community boundaries.
  • Supply-chain optimisation: searching through logistics graphs for cost-minimising shipment routes.
  • Circuit layout and VLSI routing: finding non-crossing wire paths in placement-and-routing tools.

Computational Biology

  • Protein structure prediction: graph search over conformational space.
  • Phylogenetic tree construction: maximum parsimony search over tree topologies.
  • Genome assembly: de Bruijn graph traversal and Eulerian path search over k-mer overlap graphs.

Standards & Context

  • Graph search complexity is characterised within the framework of Computational Complexity Theory: BFS/DFS are O(V + E); Dijkstra O((V + E) log V); A* worst-case exponential but optimal with admissible heuristic.
  • The field is formalised in classical AI textbooks: Russell & Norvig “Artificial Intelligence: A Modern Approach” (Chapter 3-4 on search) and LaValle “Planning Algorithms” (2006, Cambridge University Press, freely available online).
  • Motion planning variants (RRT, PRM, RRT*) are standardised within the Open Motion Planning Library (OMPL) used across Robotic Operating System (ROS) ecosystems.
  • PDDL (Planning Domain Definition Language) is the standard input language for classical Automated Planning systems that employ graph search.
  • IEEE Transactions on Robotics and the International Journal of Robotics Research are the primary venues for sampling-based search advances.
  • SPARQL 1.1 (W3C Recommendation) and Cypher (openCypher standard) formalise graph query languages that rely on graph-search primitives.
  • Graph500 benchmark measures graph search (BFS) throughput on high-performance computing systems.
  • Learned heuristics and Neural Network-guided search are active areas in NeurIPS, ICAPS, IJCAI, and AAAI conferences.

Current Landscape (2026)

  • Graph-based retrieval, not flat vector similarity, became the defining shift of 2025-2026 for reasoning over connected corpora: Microsoft Research’s LazyGraphRAG (announced November 2024) defers LLM community summarisation to query time, cutting indexing cost to roughly 0.1% of full GraphRAG (about 33,000 on large datasets) while matching global-query quality at around 700x lower query cost.
  • LazyGraphRAG shipped into production in mid-2025, integrated into Microsoft Discovery and Azure Local as public previews; Microsoft’s own BenchmarkQED harness (June 2025) reported it beating vector RAG, RAPTOR, LightRAG and full GraphRAG across query classes, even against 1M-token context windows.
  • The Microsoft GraphRAG open-source library matured from its 1.0 release (December 2024) through v3.1.x (2026), adding native incremental indexing (the graphrag update delta command), DRIFT search that fuses local and global modes, and dynamic community selection (January 2025) for a further ~77% query-cost reduction.
  • Hybrid graph-plus-vector engines converged the two paradigms in a single store: TigerVector landed in TigerGraph v4.2 (December 2024, arXiv:2501.11216) reporting 3.77-5.19x higher throughput than Neo4j; NebulaGraph Enterprise v5.1/v5.2 added native vector and full-text indexes; and Neo4j, Memgraph, Kuzu and Weaviate all now expose combined traversal plus ANN search.
  • Independent evaluation tempered the hype: the GraphRAG-Bench study (accepted ICLR 2026) found GraphRAG frequently underperforms vanilla RAG on simple real-world lookups (only about +4.5% on HotpotQA at ~2.3x latency), and Han et al. (arXiv:2502.11371, February 2025) confirmed the advantage concentrates on multi-hop, temporal and reasoning-intensive questions where gains can exceed 20 accuracy points.
  • Cheaper alternatives proliferated around the same frontier: Ohio State’s HippoRAG uses Personalised PageRank walks to run 10-30x cheaper than iterative retrieval, LightRAG (EMNLP 2025) reaches 70-90% of GraphRAG quality at roughly 1/100th indexing cost and added OpenSearch integration in March 2026, and Zep/Graphiti brought temporal knowledge-graph memory to agents.
  • Market momentum is strong but the open challenge is economics-versus-value: the knowledge-graph market is projected to grow from about 6.94B (2030) and Neo4j passed $200M ARR with 84% of the Fortune 100, yet teams increasingly default to vector plus reranker and reach for graph search only for multi-hop reasoning, entity disambiguation, or regulated domains demanding explainable, provenance-carrying answers.

References

Provenance