@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | public function hasPathTo(int $vertex) |
143 | 143 | { |
144 | - // validate this vertex in the context of the given graph |
|
144 | + // validate this vertex in the context of the given graph |
|
145 | 145 | Graph::validateVertex($vertex, $this->graph->getVertices()); |
146 | 146 | // return the flag |
147 | 147 | return $this->marked[$vertex]; |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | */ |
154 | 154 | public function distTo(int $vertex) |
155 | 155 | { |
156 | - // validate this vertex in the context of the given graph |
|
156 | + // validate this vertex in the context of the given graph |
|
157 | 157 | Graph::validateVertex($vertex, $this->graph->getVertices()); |
158 | 158 | // return the value |
159 | 159 | return $this->distTo[$vertex]; |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | */ |
166 | 166 | public function pathTo(int $vertex) |
167 | 167 | { |
168 | - // validate this vertex in the context of the given graph |
|
168 | + // validate this vertex in the context of the given graph |
|
169 | 169 | Graph::validateVertex($vertex, $this->graph->getVertices()); |
170 | 170 | // check if there is a path |
171 | 171 | if (!$this->hasPathTo($vertex)) { |
@@ -111,6 +111,6 @@ |
||
111 | 111 | */ |
112 | 112 | public function reversePostorder() |
113 | 113 | { |
114 | - return $this->reversePost; |
|
114 | + return $this->reversePost; |
|
115 | 115 | } |
116 | 116 | } |
117 | 117 | \ No newline at end of file |