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

Class is used for storing graph edge. More...

Public Member Functions

abstract float getWeight ()
 Edge weight.
 
abstract int getDst ()
 Destination vertex id GraphVertex.
 
abstract int getSrc ()
 Source vertex id GraphVertex.
 
abstract int getWeightCoef ()
 Edge weight coefficient.
 

Detailed Description

Class is used for storing graph edge.

Definition at line 16 of file GraphEdge.java.

Member Function Documentation

◆ getDst()

abstract int com.navigine.idl.java.GraphEdge.getDst ( )
abstract

Destination vertex id GraphVertex.

Returns

Java code snippet:

// Get destination vertex ID
int dst = edge.getDst();
System.out.println("Edge destination ID: " + dst);

Kotlin code snippet:

// Get destination vertex ID
val dst = edge.dst
println("Edge destination ID: $dst")

◆ getSrc()

abstract int com.navigine.idl.java.GraphEdge.getSrc ( )
abstract

Source vertex id GraphVertex.

Returns

Java code snippet:

// Get source vertex ID
int src = edge.getSrc();
System.out.println("Edge source ID: " + src);

Kotlin code snippet:

// Get source vertex ID
val src = edge.src
println("Edge source ID: $src")

◆ getWeight()

abstract float com.navigine.idl.java.GraphEdge.getWeight ( )
abstract

Edge weight.

Returns

Java code snippet:

// Get edge weight
float weight = edge.getWeight();
System.out.println("Edge weight: " + weight);

Kotlin code snippet:

// Get edge weight
val weight = edge.weight
println("Edge weight: $weight")

◆ getWeightCoef()

abstract int com.navigine.idl.java.GraphEdge.getWeightCoef ( )
abstract

Edge weight coefficient.

Returns

Java code snippet:

// Get edge weight coefficient
int weightCoef = edge.getWeightCoef();
System.out.println("Edge weight coefficient: " + weightCoef);

Kotlin code snippet:

// Get edge weight coefficient
val weightCoef = edge.weightCoef
println("Edge weight coefficient: $weightCoef")

The documentation for this class was generated from the following file: