From 6fcf0d6fb2cd5cab9a8826b2b1ea660ee785501d Mon Sep 17 00:00:00 2001 From: Lukas Renggli Date: Sat, 28 Oct 2023 15:07:24 +0200 Subject: [PATCH] Add missing comment to `AlgorithmsGraphExtension` --- lib/src/graph/algorithms.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/graph/algorithms.dart b/lib/src/graph/algorithms.dart index 5d26bf6..463a1f5 100644 --- a/lib/src/graph/algorithms.dart +++ b/lib/src/graph/algorithms.dart @@ -82,6 +82,8 @@ extension AlgorithmsGraphExtension on Graph { 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 ? (source, target) => getEdge(source, target)!.value as num