Skip to content

Commit 20caf63

Browse files
committed
Edit docs for rustc_data_structures::graph::scc
- Add newline to provide concise module summary - Add wikipedia link - Italicize O notation
1 parent a1528c4 commit 20caf63

File tree

1 file changed

+6
-4
lines changed
  • src/librustc_data_structures/graph/scc

1 file changed

+6
-4
lines changed

src/librustc_data_structures/graph/scc/mod.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
//! Routine to compute the strongly connected components (SCCs) of a
2-
//! graph, as well as the resulting DAG if each SCC is replaced with a
3-
//! node in the graph. This uses Tarjan's algorithm that completes in
4-
//! O(n) time.
1+
//! Routine to compute the strongly connected components (SCCs) of a graph.
2+
//!
3+
//! Also computes as the resulting DAG if each SCC is replaced with a
4+
//! node in the graph. This uses [Tarjan's algorithm](
5+
//! https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm)
6+
//! that completes in *O(n)* time.
57
68
use crate::fx::FxHashSet;
79
use crate::graph::vec_graph::VecGraph;

0 commit comments

Comments
 (0)