Skip to content

Commit c96bbdf

Browse files
committedJun 25, 2018
Code style fix.
1 parent 88d038b commit c96bbdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/data-structures/graph/Graph.js

+2
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,11 @@ export default class Graph {
115115
*/
116116
findEdge(startVertex, endVertex) {
117117
const vertex = this.getVertexByKey(startVertex.getKey());
118+
118119
if (!vertex) {
119120
return null;
120121
}
122+
121123
return vertex.findEdge(endVertex);
122124
}
123125

0 commit comments

Comments
 (0)
Please sign in to comment.