Skip to content

Commit

Permalink
Iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
brunolnetto committed Jan 17, 2022
2 parents 5b39106 + a87b622 commit 25468b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data-structures/graph/Graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ export default class Graph {
is_visited[from_index] = true;

// Recur for all the vertices adjacent to current vertex u
for (let i of Iter.range(adj_len)) {
for(let i of Iter.range(adj_len)) {
let neighbor_i = adj_list[from_index][i];
let ith_was_visited = is_visited[neighbor_i];

Expand Down Expand Up @@ -679,7 +679,7 @@ export default class Graph {
for(let i of Iter.range(cyclic_nodes.length)){
let j = cyclic_nodes[i];

for(let k of Iter.range(cyclic_nodes.length)){
for(let k of Iter.range(cycles.length)){
if(cycles[k].includes(j)) {
nodes_to_cycles[j].push(cycles[k]);
}
Expand Down

0 comments on commit 25468b6

Please sign in to comment.