Skip to content

Commit

Permalink
Manual cleanup of graph_connect.js
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed Jan 2, 2021
1 parent a3a6608 commit 5e556f1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/graph_connect.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
export function graph_connect(graph, comps) {
let i;
let j;
const links = graph.links();

if (!comps) comps = graph.components();

for (i = 0; i < comps.length - 1; i++) {
for (j = i + 1; j < comps.length; j++) {
for (let i = 0; i < comps.length - 1; i++) {
for (let j = i + 1; j < comps.length; j++) {
links.push({ source: comps[i][0], target: comps[j][0] });
}
}
Expand Down

0 comments on commit 5e556f1

Please sign in to comment.