Fix all Python Cookbook links (#22205)

This commit is contained in:
Andre Delfino 2020-09-15 17:13:26 -03:00 committed by GitHub
parent 5a565b3d7c
commit ac0333e1e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 20 additions and 20 deletions

View file

@ -18,7 +18,7 @@ def strongly_connected_components(
exactly once; vertices not part of a SCC are returned as
singleton sets.
From http://code.activestate.com/recipes/578507/.
From https://github.com/ActiveState/code/tree/master/recipes/Python/578507_Strongly_connected_components_directed/recipe-578507.py.
"""
identified: Set[str] = set()
stack: List[str] = []
@ -81,7 +81,7 @@ def topsort(
{B, C}
{A}
From http://code.activestate.com/recipes/577413/.
From https://github.com/ActiveState/code/tree/master/recipes/Python/577413_Topological_Sort/recipe-577413.py.
"""
# TODO: Use a faster algorithm?
for k, v in data.items():