From 813edf817861584cb530175fc20c52094ac6a99a Mon Sep 17 00:00:00 2001 From: Tim Mouskhelichvili Date: Fri, 15 Nov 2019 15:03:31 -0500 Subject: [PATCH] Update graphlib.js Fixed bug Uncaught TypeError: Cannot read property 'preorder' of undefined. --- lib/graphlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphlib.js b/lib/graphlib.js index 2047f182..8d528aef 100644 --- a/lib/graphlib.js +++ b/lib/graphlib.js @@ -4,7 +4,7 @@ var graphlib; if (typeof require === "function") { try { - graphlib = require("graphlib"); + graphlib = require("graphlib/index"); } catch (e) { // continue regardless of error }