Skip to content

Commit fab09e7

Browse files
chore: fix typos in src/main/java/com/thealgorithms/datastructures/graphs/MatrixGraphs.java (#7026)
Fix typos in src/main/java/com/thealgorithms/datastructures/graphs/MatrixGraphs.java Co-authored-by: a <[email protected]>
1 parent dd01b35 commit fab09e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/thealgorithms/datastructures/graphs/MatrixGraphs.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)) {

0 commit comments

Comments
 (0)