Skip to content

Commit

Permalink
Add missing comment to AlgorithmsGraphExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
renggli committed Oct 28, 2023
1 parent 80042c9 commit 6fcf0d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/graph/algorithms.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ extension AlgorithmsGraphExtension<V, E> on Graph<V, E> {
vertexStrategy: vertexStrategy ?? this.vertexStrategy,
);

/// Internal helper that returns a function using the numeric edge value
/// of this graph, or otherwise a constant value for each edge.
num Function(V source, V target) _getDefaultEdgeValueOr(num value) =>
this is Graph<V, num>
? (source, target) => getEdge(source, target)!.value as num
Expand Down

0 comments on commit 6fcf0d6

Please sign in to comment.