Code style fix.
This commit is contained in:
parent
88d038b5c8
commit
c96bbdf00e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user