Сlass describing a graph that connects the sublocations.
More...
Сlass describing a graph that connects the sublocations.
Referenced from Location
Definition at line 18 of file ElevationGraph.java.
◆ getEdges()
| abstract ArrayList< GraphEdge > com.navigine.idl.java.ElevationGraph.getEdges |
( |
| ) |
|
|
abstract |
List of edges that connect two sublocations GraphEdge.
- Returns
Java code snippet:
java.util.ArrayList<GraphEdge> edges = elevationGraph.getEdges();
System.out.println("Number of elevation graph edges: " + edges.size());
for (int i = 0; i < edges.size(); i++) {
GraphEdge edge = edges.get(i);
System.out.println("Elevation graph edge " + (i + 1) + ":");
}
Kotlin code snippet:
// Get elevation graph edges
val edges = elevationGraph.edges
println("Number of elevation graph edges: ${edges.size}")
// Demonstrate each edge
edges.forEachIndexed { index, edge ->
println("Elevation graph edge ${index + 1}:")
demonstrateGraphEdgeUsage(edge)
}
The documentation for this class was generated from the following file: