mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-12-26 07:01:18 +08:00
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…
Reference in New Issue
Block a user