Package oracle.pgx.algorithm
Interface PgxGraph
-
public interface PgxGraph
A PGX graph.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EdgeSet
getEdges()
Return a (lazy) set of edges that can be iterated over.long
getNumEdges()
Get the number of edges in the graph.long
getNumVertices()
Get the number of vertices in the graph.PgxVertex
getRandomVertex()
Get a random vertex from the graph.VertexSet
getVertices()
Return a (lazy) set of vertices that can be iterated over.
-
-
-
Method Detail
-
getVertices
VertexSet getVertices()
Return a (lazy) set of vertices that can be iterated over.- Returns:
-
getEdges
EdgeSet getEdges()
Return a (lazy) set of edges that can be iterated over.- Returns:
-
getNumVertices
long getNumVertices()
Get the number of vertices in the graph.- Returns:
-
getNumEdges
long getNumEdges()
Get the number of edges in the graph.- Returns:
-
getRandomVertex
PgxVertex getRandomVertex()
Get a random vertex from the graph.- Returns:
-
-