graphlab
Interface Scope


public interface Scope

Scope interface. Instance of Scope is passed to update function, and allows querying vertex neighborhood.

Author:
akyrola

Method Summary
 java.util.List<Edge> getInboundEdges()
           
 Vertex getNeighbor(int vertexId)
           
 int getNumInboundEdges()
           
 int getNumOfVertices()
           
 int getNumOutboundEdges()
           
 java.util.List<Edge> getOutboundEdges()
           
 Vertex getVertex()
          Get current vertex object.
 int getVertexId()
          Get current vertex id.
 

Method Detail

getVertexId

int getVertexId()
Get current vertex id.


getVertex

Vertex getVertex()
Get current vertex object.


getInboundEdges

java.util.List<Edge> getInboundEdges()
Returns:
list of inbound edges (unmodifiable).

getOutboundEdges

java.util.List<Edge> getOutboundEdges()
Returns:
list of out bound edges (unmodifiable).

getNeighbor

Vertex getNeighbor(int vertexId)
Returns:
neighbor vertex object

getNumInboundEdges

int getNumInboundEdges()

getNumOutboundEdges

int getNumOutboundEdges()

getNumOfVertices

int getNumOfVertices()
Returns:
number of vertices in graph