mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-12-27 15:41:16 +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) {
|
findEdge(startVertex, endVertex) {
|
||||||
const vertex = this.getVertexByKey(startVertex.getKey());
|
const vertex = this.getVertexByKey(startVertex.getKey());
|
||||||
|
|
||||||
if (!vertex) {
|
if (!vertex) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return vertex.findEdge(endVertex);
|
return vertex.findEdge(endVertex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user