File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/org/openstreetmap/josm/data/osm Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 23
23
import org .openstreetmap .josm .tools .Pair ;
24
24
25
25
/**
26
- * A directed or undirected graph of nodes.
26
+ * A directed or undirected graph of nodes. Nodes are connected via edges represented by NodePair instances.
27
27
*
28
28
* @since 12463 (extracted from CombineWayAction)
29
29
*/
@@ -211,8 +211,10 @@ public Set<Node> getNodes() {
211
211
}
212
212
213
213
/**
214
- * Creates a lookup table from the existing edges to make querying possible.
215
- * @return a map containing all the graph data, where the key is queryable, values are direct successors of the key node
214
+ * Constructs a lookup table from the existing edges in the graph to enable efficient querying.
215
+ * This method creates a map where each node is associated with a list of nodes that are directly connected to it.
216
+ *
217
+ * @return A map representing the graph structure, where nodes are keys, and values are their direct successors.
216
218
* @since xxx
217
219
*/
218
220
public Map <Node , List <Node >> createMap () {
You can’t perform that action at this time.
0 commit comments