Interface Specification

UndirectedGraph

FunctionDescriptionParallel
isDirected : FalseNo
numNodes: IntReturns number of nodes.No
numEdges: IntReturns number of edges.No
totalWeight : DoubleTotal weight of graph.Yes
weightedDegree(Node) : DoubleTotal degree of nodes edges.Yes
numSelfLoops(Node) : DoubleNumber of self loops.No
degree(Node) : MIntNumber of edges to/from node.No
nodes: NodeIdViewGives view of integers from 0:numNodes.No
neighbors(Node): NeighborViewReturns neighborhood of a node.No
foreachNode(Node => Unit) : UnitYes
mapNodes(Node => R) : NodeData(R)Yes
getExternalID(Node) : IntReturns the external ID of node.No
commonNeighbors(Node,Node) : LongCounts the number of common neighbors between two nodes.No
getNeighborsAndWeights(Node) : Tup2(NeighborView(MInt),NeighborView(Double))Returns views of neighbors and respective weights.No

DirectedGraph

FunctionDescriptionParallel
isDirected : TrueNo
numNodes: IntReturns number of nodes.No
numEdges: IntReturns number of edges.No
outDegree(Node) : MIntNumber of outgoing edgesNo
inDegree(Node) : MIntNumber of incoming edgesNo
outNeighbors(Node): NeighborViewReturns neighborhood of a outgoing edges.No
inNeighbors(Node): NeighborViewReturns neighborhood of a incoming edges.No
foreachNode(Node => Unit) : UnitYes
mapNodes(Node => R) : NodeData(R)Yes
getExternalID(Node) : IntReturns the external ID of node.No

Provided Functions

FunctionDescriptionParallel
sumOverNodes(NodeIdView)(Node => R) : RSums over the neighbors of a node.Yes
sumOverNeighbors(NeighborView)(Node => R) : RSums over the neighbors of a node.Yes

NodeData(T)

FunctionDescriptionParallel
apply(Int) : TReturn element at index.No
apply(Node) : TReturn element at node id.No
update(Int,T) : UnitWrite element at index.
append(T) : UnitAppend Element.No.
getRawArray : Array(T)Access raw data.No
getRawArrayBuffer : ArrayBuffer(T)Access raw data.No
resize(MInt) : UnitResize array to specified length.No
concat(NodeData(T)) : UnitAppend NodeData to self.No
-(NodeData(T)) : NodeData(T)NodeData subtract.Yes
+(NodeData(T)) : NodeData(T)NodeData addition.Yes
pack(NodeData(T)) : NodeData(T)Zip elems to tuples.Yes
map((T => R) : NodeData(R))Map elems.Yes
flatMap(T => NodeData(R) : NodeData(R))Flatmap elems.Yes
foreach(T => Unit) : UnitForeach elem.Yes
reduce(((T,T) => T) : T)Reduce elems.Yes.
groupBy((T => K, T => V) : HashMap(K, ArrayBuffer(V)))Group ByYes
groupByReduce((T => K, T => V, (V,V) => V)) : HashMap(K,V)GroupByReduceYes
mapreduce(T => R, (R,R) => R, T => Boolean)map reduceYes
distinct : NodeData(T)Return collection with distinc elements.No
sort : NodeData(R)Return sorted collection.No
sortBy(Int => R) : NodeData(T)Sort collection by function.No
sortIndiciesBy(Int => R) : NodeData(T)Sort indices by.No
print : UnitPrints elems in collection.No
forloop(Int => Unit) : UnitSerial for loop.Yes

Specification page still under construction!