From 4db510da800039a9f544e02d32b454428f682c8f Mon Sep 17 00:00:00 2001 From: Wizard-F <95689995+Wizard-F@users.noreply.github.com> Date: Wed, 13 Apr 2022 10:21:05 +0800 Subject: [PATCH] Fix param mismatch in comment for value in GraphOptions (#25) * Fix param mismatch in comment for value in GraphOptions * Switch to source and target instead of i and j --- src/Randomize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Randomize.ts b/src/Randomize.ts index e131107..207fa98 100644 --- a/src/Randomize.ts +++ b/src/Randomize.ts @@ -158,7 +158,7 @@ namespace Randomize { * @param source The id of the node where the edge starts. * @param target The id of the node where the edge ends. */ - value?: (i: number, j: number) => any; + value?: (source: number, target: number) => any; /** * Whether to make the graph directed.