Class is used for storing graph edge.
More...
Class is used for storing graph edge.
Definition at line 16 of file GraphEdge.java.
◆ getDst()
| abstract int com.navigine.idl.java.GraphEdge.getDst |
( |
| ) |
|
|
abstract |
Destination vertex id GraphVertex.
- Returns
Java code snippet:
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:
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:
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:
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: