Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Add explicit type to for-in loop #16

Merged
merged 1 commit into from
Jan 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/src/strongly_connected_components.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ List<List<V>> stronglyConnectedComponents<K, V>(
index++;
lastVisited.addLast(node);
onStack.add(nodeKey);
for (final next in children(node) ?? const []) {
for (final V next in children(node) ?? const []) {
var nextKey = key(next);
if (!indexes.containsKey(nextKey)) {
strongConnect(next);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: graphs
version: 0.1.0
version: 0.1.1-dev
description: Graph algorithms operation an graphs in any representation.
author: Dart Team <[email protected]>
homepage: https://github.com/dart-lang/graphs
Expand Down