Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d73b2bb

Browse files
committed
-update: method name change
1 parent 060d51e commit d73b2bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/_DataStructures_/Graphs/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Graph {
2525
return this.data.getEdges(v);
2626
}
2727

28-
displayMatrix() {
28+
display() {
2929
return this.data.displayMatrix();
3030
}
3131

@@ -77,7 +77,7 @@ class Graph {
7777
// const g = new Graph();
7878

7979
// g.addVertex('Noida');
80-
// console.log(g.displayMatrix());
80+
// console.log(g.display());
8181

8282
// g.addEdge('Noida', 'Greater Noida');
8383
// g.addEdge('Noida', 'Ghaziabaad');
@@ -88,16 +88,16 @@ class Graph {
8888
// g.addVertex('Mathura');
8989
// g.addEdge('Mathura', 'Noida');
9090
// g.addEdge('Mathura', 'Meerut');
91-
// console.log(g.displayMatrix());
91+
// console.log(g.display());
9292
// // g.data['Noida'].size = 10;
9393

9494
// // console.log(g.data['Noida']);
9595
// // g.filter('Noida', 'Greater Noida');
96-
// console.log(g.displayMatrix());
96+
// console.log(g.display());
9797
// console.log('removing Mathura');
9898

9999
// g.removeVertex('Mathura');
100-
// console.log(g.displayMatrix());
100+
// console.log(g.display());
101101
// console.log(g.getEdges('Noida'));
102102

103103
module.exports = Graph;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /