diff --git a/src/data-structures/Graph/Graph.ts b/src/data-structures/Graph/Graph.ts index ff8122e..e888739 100644 --- a/src/data-structures/Graph/Graph.ts +++ b/src/data-structures/Graph/Graph.ts @@ -68,9 +68,6 @@ export class Graph { return this; } - /** - * @param {GraphEdge} edge - */ deleteEdge(edge: GraphEdge) { // Delete edge from the list of edges. if (this.edges[edge.getKey()]) { @@ -150,9 +147,6 @@ export class Graph { return adjacencyMatrix; } - /** - * @return {string} - */ toString() { return Object.keys(this.vertices).toString(); } diff --git a/src/data-structures/Graph/GraphEdge.ts b/src/data-structures/Graph/GraphEdge.ts index 64d2f27..e69a26b 100644 --- a/src/data-structures/Graph/GraphEdge.ts +++ b/src/data-structures/Graph/GraphEdge.ts @@ -10,9 +10,6 @@ export class GraphEdge { return `${startVertexKey}_${endVertexKey}`; } - /** - * @return {GraphEdge} - */ reverse() { const tmp = this.startVertex; this.startVertex = this.endVertex; @@ -21,9 +18,6 @@ export class GraphEdge { return this; } - /** - * @return {string} - */ toString() { return this.getKey(); }