Code style fix.

This commit is contained in:
Oleksii Trekhleb 2018-06-25 14:34:40 +03:00
parent 88d038b5c8
commit c96bbdf00e

View File

@ -115,9 +115,11 @@ export default class Graph {
*/
findEdge(startVertex, endVertex) {
const vertex = this.getVertexByKey(startVertex.getKey());
if (!vertex) {
return null;
}
return vertex.findEdge(endVertex);
}