Loading...
Searching...
No Matches
com.navigine.idl.java.ElevationGraph Class Referenceabstract

Сlass describing a graph that connects the sublocations. More...

Public Member Functions

abstract ArrayList< GraphEdgegetEdges ()
 List of edges that connect two sublocations GraphEdge.
 

Detailed Description

Сlass describing a graph that connects the sublocations.

Referenced from Location

Definition at line 18 of file ElevationGraph.java.

Member Function Documentation

◆ getEdges()

abstract ArrayList< GraphEdge > com.navigine.idl.java.ElevationGraph.getEdges ( )
abstract

List of edges that connect two sublocations GraphEdge.

Returns

Java code snippet:

// Get elevation graph edges
java.util.ArrayList<GraphEdge> edges = elevationGraph.getEdges();
System.out.println("Number of elevation graph edges: " + edges.size());
// Demonstrate each edge
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: