Skip to content

Commit

Permalink
Consistent spelling of in-degree
Browse files Browse the repository at this point in the history
Co-authored-by: Ross Barnowski <[email protected]>
  • Loading branch information
squenson1 and rossbar authored Jan 5, 2024
1 parent 56d077c commit 6041e6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/algorithms/dag/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ This procedure is implemented in the `topological_generations()` function, on wh

Let's see how the `topological_generations()` function is implemented in NetworkX step by step.

#### Step 1. Initialize indegrees.
#### Step 1. Initialize in-degrees.

Since in Kahn's algorithm we are only interested in the indegrees of the vertices,
Since in Kahn's algorithm we are only interested in the in-degrees of the vertices,
in order to preserve the structure of the graph as it is passed in,
instead of removing the edges, we will decrease the indegree of the corresponding vertex.
instead of removing the edges, we will decrease the in-degree of the corresponding vertex.
Therefore, we will save these values in a separate _dictionary_ `indegree_map`.

```
Expand Down

0 comments on commit 6041e6a

Please sign in to comment.