Skip to content

Commit

Permalink
Merge pull request #3048 from davis-matthew/unstable
Browse files Browse the repository at this point in the history
Spelling Fixes
  • Loading branch information
maxkfranz authored Aug 3, 2022
2 parents e761f04 + be10eed commit f7358ed
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/collection/algorithms/betweenness-centrality.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ let elesfn = ({

}); // elesfn

// nice, short mathemathical alias
// nice, short mathematical alias
elesfn.bc = elesfn.betweennessCentrality;

export default elesfn;
2 changes: 1 addition & 1 deletion src/collection/algorithms/bfs-dfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ let elesfn = ({
depthFirstSearch: defineSearch( { dfs: true } )
});

// nice, short mathemathical alias
// nice, short mathematical alias
elesfn.bfs = elesfn.breadthFirstSearch;
elesfn.dfs = elesfn.depthFirstSearch;

Expand Down
2 changes: 1 addition & 1 deletion src/collection/algorithms/closeness-centrality.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const elesfn = ({

}); // elesfn

// nice, short mathemathical alias
// nice, short mathematical alias
elesfn.cc = elesfn.closenessCentrality;
elesfn.ccn = elesfn.closenessCentralityNormalised = elesfn.closenessCentralityNormalized;

Expand Down
2 changes: 1 addition & 1 deletion src/collection/algorithms/degree-centrality.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ let elesfn = ({

}); // elesfn

// nice, short mathemathical alias
// nice, short mathematical alias
elesfn.dc = elesfn.degreeCentrality;
elesfn.dcn = elesfn.degreeCentralityNormalised = elesfn.degreeCentralityNormalized;

Expand Down
2 changes: 1 addition & 1 deletion src/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const uuid = ( a, b /* placeholders */) => {
? // return a random number or 4
(
a^15 // if "a" is not 15
? // genetate a random number from 0 to 15
? // generate a random number from 0 to 15
8^Math.random()*
(a^20?16:4) // unless "a" is 20, in which case a random number from 8 to 11
:
Expand Down

0 comments on commit f7358ed

Please sign in to comment.