mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Revert "Fix all Python Cookbook links (#22205)" (GH-22424)
This commit reverts commit ac0333e1e1
as the original links are working again and they provide extended features such as comments and alternative versions.
This commit is contained in:
parent
2afd1751dd
commit
e8a2076e14
17 changed files with 20 additions and 20 deletions
|
@ -18,7 +18,7 @@ def strongly_connected_components(
|
|||
exactly once; vertices not part of a SCC are returned as
|
||||
singleton sets.
|
||||
|
||||
From https://github.com/ActiveState/code/tree/master/recipes/Python/578507_Strongly_connected_components_directed/recipe-578507.py.
|
||||
From http://code.activestate.com/recipes/578507/.
|
||||
"""
|
||||
identified: Set[str] = set()
|
||||
stack: List[str] = []
|
||||
|
@ -81,7 +81,7 @@ def topsort(
|
|||
{B, C}
|
||||
{A}
|
||||
|
||||
From https://github.com/ActiveState/code/tree/master/recipes/Python/577413_Topological_Sort/recipe-577413.py.
|
||||
From http://code.activestate.com/recipes/577413/.
|
||||
"""
|
||||
# TODO: Use a faster algorithm?
|
||||
for k, v in data.items():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue