Changeset 19064 in josm
- Timestamp:
- 2024-04-27T10:24:46+02:00 (7 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/algorithms/Tarjan.java
r19062 r19064 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.algorithms; 3 4 import org.openstreetmap.josm.data.osm.Node;5 import org.openstreetmap.josm.data.osm.NodeGraph;6 import org.openstreetmap.josm.tools.Pair;7 import org.openstreetmap.josm.tools.Utils;8 3 9 4 import java.util.ArrayDeque; … … 16 11 import java.util.Map; 17 12 13 import org.openstreetmap.josm.data.osm.Node; 14 import org.openstreetmap.josm.data.osm.NodeGraph; 15 import org.openstreetmap.josm.tools.Pair; 16 import org.openstreetmap.josm.tools.Utils; 17 18 18 /** 19 19 * Tarjan's strongly connected components algorithm for JOSM. … … 22 22 * @see <a href="https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm"> 23 23 * Tarjan's strongly connected components algorithm</a> 24 * @since xxx24 * @since 19062 25 25 */ 26 26 public final class Tarjan { -
trunk/src/org/openstreetmap/josm/data/osm/NodeGraph.java
r19062 r19064 168 168 * 169 169 * @return A map representing the graph structure, where nodes are keys, and values are their direct successors. 170 * @since xxx170 * @since 19062 171 171 */ 172 172 public Map<Node, List<Node>> createMap() { -
trunk/src/org/openstreetmap/josm/data/validation/tests/CycleDetector.java
r19062 r19064 37 37 * 38 38 * @author gaben 39 * @since xxx39 * @since 19062 40 40 */ 41 41 public class CycleDetector extends Test { -
trunk/test/unit/org/openstreetmap/josm/data/osm/WaySegmentTest.java
r18853 r19064 37 37 assertEquals(WaySegment.forNodePair(w, n4, n1).getLowerIndex(), 5); 38 38 IllegalArgumentException iae = assertThrows(IllegalArgumentException.class, () -> WaySegment.forNodePair(w, n3, n4)); 39 assertEquals(" Node pair is not part ofway!", iae.getMessage());39 assertEquals("The node pair is not consecutive part of the way!", iae.getMessage()); 40 40 } 41 41 }
Note:
See TracChangeset
for help on using the changeset viewer.