Gets the paths to a place @param place a place that this place is connected to @return paths to place
(final Place place)
| 216 | * @return paths to place |
| 217 | */ |
| 218 | public HashSet<Path> getPaths(final Place place) { |
| 219 | final HashSet<Path> ret = new HashSet<>(); |
| 220 | for (final Path path : paths) { |
| 221 | if (path.hasPlace(place)) { |
| 222 | ret.add(path); |
| 223 | } |
| 224 | } |
| 225 | return ret; |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Gets all paths |