About 1,630 results
Open links in new tab
  1. Depth-first search in digraphs Same method as for undirected graphs. ・Every undirected graph is a digraph (with edges in both directions).・DFS is a digraph algorithm. DFS (to visit a vertex …

  2. Directed Graphs - Princeton University

    Jan 14, 2020 · A directed graph (or digraph) is a set of vertices and a collection of directed edges that each connects an ordered pair of vertices. We say that a directed edge points from the …

  3. DirectedDFS.java - Princeton University

    Oct 29, 2025 · Below is the syntax highlighted version of DirectedDFS.java from §4.2 Directed Graphs.

  4. Digraph (Algorithms 4/e) - Princeton University

    The Digraph class represents a directed graph of vertices named 0 through V - 1. It supports the following two primary operations: add an edge to the digraph, iterate over all of the vertices …

  5. 4. Graphs - Princeton University

    Aug 26, 2016 · 4.1 Undirected Graphs introduces the graph data type, including depth-first search and breadth-first search. 4.2 Directed Graphs introduces the digraph data type, including …

  6. Digraph.java - Princeton University

    Oct 29, 2025 · Below is the syntax highlighted version of Digraph.java from §4.2 Directed Graphs.

  7. Undirected Graphs - Princeton University

    Apr 16, 2019 · A bridge in a graph is an edge that, if removed, would separate a connected graph into two disjoint subgraphs. A graph that has no bridges is said to be two-edge connected.

  8. Topological.java - Princeton University

    Oct 29, 2025 · Below is the syntax highlighted version of Topological.java from §4.2 Directed Graphs.

  9. Directed graphs Digraph. Set of vertices connected pairwise by directed edges. outdegree = 4 indegree = 2 0

  10. TopologicalX.java

    Below is the syntax highlighted version of TopologicalX.java from §4.2 Directed Graphs.