Skip to content

Commit

Permalink
Merge pull request #402 from RohitPaul0007/patch-45
Browse files Browse the repository at this point in the history
Update normalize.js
  • Loading branch information
rustedgrail authored Sep 11, 2023
2 parents cb01504 + 2dcc954 commit 609e161
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/normalize.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var util = require("./util");
let util = require("./util");

module.exports = {
run: run,
Expand Down Expand Up @@ -29,13 +29,13 @@ function run(g) {
}

function normalizeEdge(g, e) {
var v = e.v;
var vRank = g.node(v).rank;
var w = e.w;
var wRank = g.node(w).rank;
var name = e.name;
var edgeLabel = g.edge(e);
var labelRank = edgeLabel.labelRank;
let v = e.v;
let vRank = g.node(v).rank;
let w = e.w;
let wRank = g.node(w).rank;
let name = e.name;
let edgeLabel = g.edge(e);
let labelRank = edgeLabel.labelRank;

if (wRank === vRank + 1) return;

Expand Down

0 comments on commit 609e161

Please sign in to comment.