0PricingLogin
Neo4j Graph Database Fundamentals · Lesson

Pathfinding Algorithms (BFS, DFS)

Explore algorithms like Breadth-First Search and Depth-First Search to find paths and connections in a graph.

Finding Your Way in Graphs

Graphs are all about connections! Imagine a map where cities are points and roads are lines. Finding the best route from one city to another is a classic "pathfinding" problem.

In this lesson, we'll explore two fundamental algorithms for finding paths in graphs: Breadth-First Search (BFS) and Depth-First Search (DFS).

What's a Graph? Quick Review

Before we dive into algorithms, let's quickly review what a graph is:

  • Nodes: These are the entities or points in your graph (e.g., people, cities, products).
  • Relationships: These are the connections between nodes (e.g., "FRIENDS_WITH", "LOCATED_IN").
  • Path: A sequence of connected nodes and relationships from one node to another.

All lessons in this course

  1. Pathfinding Algorithms (BFS, DFS)
  2. Centrality Algorithms (PageRank)
  3. Community Detection Algorithms
  4. Similarity and Link Prediction Algorithms
← Back to Neo4j Graph Database Fundamentals