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

Class is used for storing graph. More...

+ Inheritance diagram for com.navigine.idl.java.Graph:

Public Member Functions

abstract ArrayList< GraphVertexgetVertexes ()
 List of connected vertexes GraphVertex.
 
abstract ArrayList< GraphEdgegetEdges ()
 List of edges that connected vertexes GraphEdge.
 
abstract boolean isValid ()
 

Detailed Description

Class is used for storing graph.

Referenced from Sublocation.

Definition at line 18 of file Graph.java.

Member Function Documentation

◆ getEdges()

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

List of edges that connected vertexes GraphEdge.

Returns

Java code snippet:

// Get graph edges
java.util.ArrayList<GraphEdge> edges = graph.getEdges();
System.out.println("Number of graph edges: " + edges.size());

Kotlin code snippet:

// Get graph edges
val edges = graph.edges
println("Number of graph edges: ${edges.size}")

Reimplemented in com.navigine.idl.java.internal.GraphBinding.

◆ getVertexes()

abstract ArrayList< GraphVertex > com.navigine.idl.java.Graph.getVertexes ( )
abstract

List of connected vertexes GraphVertex.

Returns

Java code snippet:

// Get graph vertices
java.util.ArrayList<GraphVertex> vertices = graph.getVertices();
System.out.println("Number of graph vertices: " + vertices.size());

Kotlin code snippet:

// Get graph vertices
val vertices = graph.vertices
println("Number of graph vertices: ${vertices.size}")

Reimplemented in com.navigine.idl.java.internal.GraphBinding.

◆ isValid()

abstract boolean com.navigine.idl.java.Graph.isValid ( )
abstract

Tells if this Graph is valid or not. Any other method (except for this one) called on an invalid Graph will throw java.lang.RuntimeException.

Reimplemented in com.navigine.idl.java.internal.GraphBinding.


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