Skip to content
CCC Python Course

DFS tree properties

Stage
6
Module
M6.4
Lessons
1

In this module

  • Classify edges in a DFS tree as tree, back, forward, and cross edges.
  • Compute discovery and finish times for each node.
  • Use DFS timing to detect cycles and perform topological sorting.
  • Apply DFS tree structure to solve graph connectivity problems.

Before this module

Lessons

  1. 1DFS tree properties and edge classification

Practice

Try this on the judge. The link opens the problem on WMOJ.

  1. 2024 S4
    Painting Roads (opens on WMOJ in a new tab) WMOJ

    Classify the edges of a DFS tree to tell a simple path apart from a cycle.