File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/thealgorithms/datastructures/graphs Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ private int[][] adjacency() {
141141 *
142142 * @param from the parent vertex to check for adjacency
143143 * @param to the child vertex to check for adjacency
144- * @return whether or not the vertices are adjancent
144+ * @return whether or not the vertices are adjacent
145145 */
146146 private boolean adjacencyOfEdgeDoesExist (int from , int to ) {
147147 return (this .adjacency ()[from ][to ] != AdjacencyMatrixGraph .EDGE_NONE );
@@ -162,7 +162,7 @@ public boolean vertexDoesExist(int aVertex) {
162162 *
163163 * @param from the parent vertex to check for adjacency
164164 * @param to the child vertex to check for adjacency
165- * @return whether or not the vertices are adjancent
165+ * @return whether or not the vertices are adjacent
166166 */
167167 public boolean edgeDoesExist (int from , int to ) {
168168 if (this .vertexDoesExist (from ) && this .vertexDoesExist (to )) {
You can’t perform that action at this time.
0 commit comments