public class Analyst extends Destroyable
Destroyable.destroy()
is invoked, all transient data returned by the Analyst gets freed and cannot be used anymore.Modifier and Type | Method and Description |
---|---|
<ID extends Comparable<ID>> |
approximateVertexBetweennessCentrality(PgxGraph graph, int k)
Blocking version of
#approximateVertexBetweennessCentralityAsync() . |
<ID extends Comparable<ID>> |
approximateVertexBetweennessCentralityAsync(PgxGraph graph, int k)
Approximate vertex betweenness centrality (without considering edge length).
|
<ID extends Comparable<ID>> |
approximateVertexBetweennessCentralityFromSeeds(PgxGraph graph, PgxVertex<ID>... seeds)
Blocking version of
#approximateVertexBetweennessCentralityFromSeedsAsync() . |
<ID extends Comparable<ID>> |
approximateVertexBetweennessCentralityFromSeedsAsync(PgxGraph graph, PgxVertex<ID>... seeds)
Approximate vertex betweenness centrality (without considering edge length).
|
<ID extends Comparable<ID>> |
closenessCentralityDoubleLength(PgxGraph graph, EdgeProperty<Double> cost)
Blocking version of
#closenessCentralityDoubleLengthAsync() . |
<ID extends Comparable<ID>> |
closenessCentralityDoubleLengthAsync(PgxGraph graph, EdgeProperty<Double> cost)
Compute closed centrality.
|
<ID extends Comparable<ID>> |
closenessCentralityUnitLength(PgxGraph graph)
Blocking version of
#closenessCentralityUnitLengthAsync() . |
<ID extends Comparable<ID>> |
closenessCentralityUnitLengthAsync(PgxGraph graph)
Compute closed centrality.
|
<ID extends Comparable<ID>> |
communitiesLabelPropagation(PgxGraph graph)
Blocking version of
#communitiesLabelPropagationAsync() . |
<ID extends Comparable<ID>> |
communitiesLabelPropagationAsync(PgxGraph graph)
Detect communities using parallel label propagation.
|
long |
countTriangles(PgxGraph graph, boolean sortVerticesByDegree)
Blocking version of
#countTrianglesAsync() . |
PgxFuture<Long> |
countTrianglesAsync(PgxGraph graph, boolean sortVerticesByDegree)
Counts the number of 'triads' in the given undirected graph.
|
<ID extends Comparable<ID>> |
degreeCentrality(PgxGraph graph)
Blocking version of
#degreeCentralityAsync() . |
<ID extends Comparable<ID>> |
degreeCentralityAsync(PgxGraph graph)
Compute degree centrality.
|
<ID extends Comparable<ID>> |
eigenvectorCentrality(PgxGraph graph, int max, double maxDiff, boolean useL2Norm, boolean useInEdge)
Blocking version of
#eigenvectorCentralityAsync() . |
<ID extends Comparable<ID>> |
eigenvectorCentralityAsync(PgxGraph graph, int max, double maxDiff, boolean useL2Norm, boolean useInEdge)
Compute eigenvector centrality using power iteration (with L1 norm).
|
<ID extends Comparable<ID>> |
fattestPath(PgxGraph graph, ID rootId, EdgeProperty<Double> capacity)
Convenience wrapper around
fattestPath(PgxGraph, PgxVertex, EdgeProperty) taking a vertex ID instead of a PgxVertex . |
<ID extends Comparable<ID>> |
fattestPath(PgxGraph graph, PgxVertex<ID> root, EdgeProperty<Double> capacity)
Blocking version of
#fattestPathAsync() . |
<ID extends Comparable<ID>> |
fattestPathAsync(PgxGraph graph, PgxVertex<ID> root, EdgeProperty<Double> capacity)
Fattest Tree Algorithm - Computes the fattest path from a source vertex to all vertices in the graph.
|
PgxSession |
getSession()
Gets the session.
|
<ID extends Comparable<ID>> |
hits(PgxGraph graph, int max)
Blocking version of
#hitsAsync() . |
<ID extends Comparable<ID>> |
hitsAsync(PgxGraph graph, int max)
Classic HITS algorithm (Hyperlink-Induced Topic Search, aka.
|
<ID extends Comparable<ID>> |
inDegreeCentrality(PgxGraph graph)
Blocking version of
#inDegreeCentralityAsync() . |
<ID extends Comparable<ID>> |
inDegreeCentralityAsync(PgxGraph graph)
Compute in-degree centrality.
|
PgxMap<Integer,Long> |
inDegreeDistribution(PgxGraph graph)
Blocking version of
#inDegreeDistributionAsync() . |
PgxFuture<PgxMap<Integer,Long>> |
inDegreeDistributionAsync(PgxGraph graph)
Computes the indegree distribution of the given graph and stores it in a map.
|
<ID extends Comparable<ID>> |
outDegreeCentrality(PgxGraph graph)
Blocking version of
#outDegreeCentralityAsync() . |
<ID extends Comparable<ID>> |
outDegreeCentralityAsync(PgxGraph graph)
Compute out-degree centrality.
|
PgxMap<Integer,Long> |
outDegreeDistribution(PgxGraph graph)
Blocking version of
#outDegreeDistributionAsync() . |
PgxFuture<PgxMap<Integer,Long>> |
outDegreeDistributionAsync(PgxGraph graph)
Computes the outdegree distribution of the given graph and stores it in a map.
|
<ID extends Comparable<ID>> |
pagerank(PgxGraph graph, double e, double d, int max)
Blocking version of
#pagerankAsync() . |
<ID extends Comparable<ID>> |
pagerankAsync(PgxGraph graph, double e, double d, int max)
Classic pagerank algorithm.
|
<ID extends Comparable<ID>> |
partitionConductance(PgxGraph graph, Partition<ID> components)
Blocking version of
#partitionConductanceAsync() . |
<ID extends Comparable<ID>> |
partitionConductanceAsync(PgxGraph graph, Partition<ID> partition)
Compute the conductance of a partition.
|
<ID extends Comparable<ID>> |
partitionModularity(PgxGraph graph, Partition<ID> components)
Blocking version of
#partitionModularityAsync() . |
<ID extends Comparable<ID>> |
partitionModularityAsync(PgxGraph graph, Partition<ID> partition)
Compute the modularity of a partition.
|
<ID extends Comparable<ID>> |
personalizedPagerank(PgxGraph graph, ID vertexId, double e, double d, int max)
Convenience wrapper around
personalizedPagerank(PgxGraph, PgxVertex, double, double, int) taking a vertex ID instead of a PgxVertex . |
<ID extends Comparable<ID>> |
personalizedPagerank(PgxGraph graph, PgxVertex<ID> v, double e, double d, int max)
Blocking version of
personalizedPagerankAsync(PgxGraph, PgxVertex, double, double, int) . |
<ID extends Comparable<ID>> |
personalizedPagerank(PgxGraph graph, VertexSet<ID> vertices, double e, double d, int max)
Blocking version of
personalizedPagerankAsync(PgxGraph, VertexSet, double, double, int) . |
<ID extends Comparable<ID>> |
personalizedPagerankAsync(PgxGraph graph, PgxVertex<ID> v, double e, double d, int max)
Personalized pagerank (random walk with restart) evaluates relative importance of vertices in a graph with respect to a given vertex v.
|
<ID extends Comparable<ID>> |
personalizedPagerankAsync(PgxGraph graph, VertexSet<ID> vertices, double e, double d, int max)
Personalized pagerank (random walk with restart) evaluates relative importance of vertices in a graph with respect to a given set of vertices.
|
<ID extends Comparable<ID>> |
salsa(BipartiteGraph graph, int k)
Blocking version of
salsaAsync(BipartiteGraph, int) . |
<ID extends Comparable<ID>> |
salsa(BipartiteGraph graph, int k, double maxDiff, double d, int maxIter)
Blocking version of
salsaAsync(BipartiteGraph, int, double, double, int) . |
<ID extends Comparable<ID>> |
salsaAsync(BipartiteGraph graph, int k)
Convenience method around
salsaAsync(BipartiteGraph, int, double, double, int) using maxDiff = 0.01 d = 0.85 maxIter = 1.10 |
<ID extends Comparable<ID>> |
salsaAsync(BipartiteGraph graph, int k, double maxDiff, double d, int maxIter)
SALSA recommendation algorithm.
|
<ID extends Comparable<ID>> |
sccKosaraju(PgxGraph graph)
Blocking version of
#sccKosarajuAsync() . |
<ID extends Comparable<ID>> |
sccKosarajuAsync(PgxGraph graph)
Find strongly connected components using Kosaraju's algorithm.
|
<ID extends Comparable<ID>> |
sccTarjan(PgxGraph graph)
Blocking version of
#sccTarjanAsync() . |
<ID extends Comparable<ID>> |
sccTarjanAsync(PgxGraph graph)
Find strongly connected components using Tarjan's algorithm.
|
<ID extends Comparable<ID>> |
shortestPathBellmanFord(PgxGraph graph, ID srcId, EdgeProperty<Double> cost)
Convenience wrapper around
shortestPathBellmanFord(PgxGraph, PgxVertex, EdgeProperty) taking a vertex ID instead of PgxVertex . |
<ID extends Comparable<ID>> |
shortestPathBellmanFord(PgxGraph graph, PgxVertex<ID> src, EdgeProperty<Double> cost)
Blocking version of
#shortestPathBellmanFordAsync() . |
<ID extends Comparable<ID>> |
shortestPathBellmanFordAsync(PgxGraph graph, PgxVertex<ID> src, EdgeProperty<Double> cost)
Compute single source shortest paths using Bellman & Ford algorithm time complexity: O(E * D) with E = number of edges, D = number edges in the shortest length
|
<ID extends Comparable<ID>> |
shortestPathBellmanFordReverse(PgxGraph graph, ID srcId, EdgeProperty<Double> cost)
Convenience wrapper around
shortestPathBellmanFordReverse(PgxGraph, PgxVertex, EdgeProperty) taking a vertex ID instead of PgxVertex . |
<ID extends Comparable<ID>> |
shortestPathBellmanFordReverse(PgxGraph graph, PgxVertex<ID> src, EdgeProperty<Double> cost)
Blocking version of
#shortestPathBellmanFordReverseAsync() . |
<ID extends Comparable<ID>> |
shortestPathBellmanFordReverseAsync(PgxGraph graph, PgxVertex<ID> src, EdgeProperty<Double> cost)
Compute reverse single source shortest paths using Bellman & Ford algorithm time complexity: O(E * D) with E = number of edges, D = number edges in the shortest length
|
<ID extends Comparable<ID>> |
shortestPathDijkstra(PgxGraph graph, ID srcId, ID dstId, EdgeProperty<Double> cost)
Convenience wrapper around
shortestPathDijkstra(PgxGraph, PgxVertex, PgxVertex, EdgeProperty) taking vertex IDs instead of PgxVertex . |
<ID extends Comparable<ID>> |
shortestPathDijkstra(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost)
Blocking version of
#shortestPathDijkstraAsync() . |
<ID extends Comparable<ID>> |
shortestPathDijkstraAsync(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost)
Compute shortest path using Dijkstra's algorithm.
|
<ID extends Comparable<ID>> |
shortestPathDijkstraBidirectional(PgxGraph graph, ID srcId, ID dstId, EdgeProperty<Double> cost)
Convenience wrapper around
shortestPathDijkstraBidirectional(PgxGraph, PgxVertex, PgxVertex, EdgeProperty) taking vertex IDs instead of PgxVertex . |
<ID extends Comparable<ID>> |
shortestPathDijkstraBidirectional(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost)
Blocking version of
#shortestPathDijkstraBidirectionalAsync() . |
<ID extends Comparable<ID>> |
shortestPathDijkstraBidirectionalAsync(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost)
Compute shortest path using a bi-directional Dijkstra variant.
|
<ID extends Comparable<ID>> |
shortestPathFilteredDijkstra(PgxGraph graph, ID srcId, ID dstId, EdgeProperty<Double> cost, GraphFilter filterExpr)
Convenience wrapper around
shortestPathFilteredDijkstra(PgxGraph, PgxVertex, PgxVertex, EdgeProperty, GraphFilter) taking vertex IDs instead of PgxVertex . |
<ID extends Comparable<ID>> |
shortestPathFilteredDijkstra(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost, GraphFilter filterExpr)
Blocking version of
#shortestPathFilteredDijkstraAsync() . |
<ID extends Comparable<ID>> |
shortestPathFilteredDijkstraAsync(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost, GraphFilter filterExpr)
Compute shortest path using Dijkstra's algorithm on a filtered graph The filter specified by the given filter expression is applied on each edge during traversal of the graph.
|
<ID extends Comparable<ID>> |
shortestPathFilteredDijkstraBidirectional(PgxGraph graph, ID srcId, ID dstId, EdgeProperty<Double> cost, GraphFilter filterExpr)
Convenience wrapper around
shortestPathFilteredDijkstraBidirectional(PgxGraph, PgxVertex, PgxVertex, EdgeProperty, GraphFilter) taking vertex IDs instead of PgxVertex . |
<ID extends Comparable<ID>> |
shortestPathFilteredDijkstraBidirectional(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost, GraphFilter filterExpr)
Blocking version of
#shortestPathFilteredDijkstraBidirectionalAsync() . |
<ID extends Comparable<ID>> |
shortestPathFilteredDijkstraBidirectionalAsync(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost, GraphFilter filterExpr)
Compute shortest path using a bi-directional Dijkstra variant on a filtered graph.
|
<ID extends Comparable<ID>> |
shortestPathHopDist(PgxGraph graph, ID srcId)
Convenience wrapper around
shortestPathHopDist(PgxGraph, PgxVertex) taking a vertex ID instead of PgxVertex . |
<ID extends Comparable<ID>> |
shortestPathHopDist(PgxGraph graph, PgxVertex<ID> src)
Blocking version of
#shortestPathHopDistAsync() . |
<ID extends Comparable<ID>> |
shortestPathHopDistAsync(PgxGraph graph, PgxVertex<ID> src)
Compute hop-distance from given vertex to every other vertex time complexity: O(E * d) with E = number of edges, d = diameter of graph
|
<ID extends Comparable<ID>> |
shortestPathHopDistReverse(PgxGraph graph, ID srcId)
Convenience wrapper around
shortestPathHopDistReverse(PgxGraph, PgxVertex) taking a vertex ID instead of PgxVertex . |
<ID extends Comparable<ID>> |
shortestPathHopDistReverse(PgxGraph graph, PgxVertex<ID> src)
Blocking version of
#shortestPathHopDistReverseAsync() . |
<ID extends Comparable<ID>> |
shortestPathHopDistReverseAsync(PgxGraph graph, PgxVertex<ID> src)
Compute reverse hop-distance from given vertex to every other vertex time complexity: O(E * d) with E = number of edges, d = diameter of graph
|
String |
toString() |
<ID extends Comparable<ID>> |
vertexBetweennessCentrality(PgxGraph graph)
Blocking version of
#vertexBetweennessCentralityAsync() . |
<ID extends Comparable<ID>> |
vertexBetweennessCentralityAsync(PgxGraph graph)
Compute vertex betweenness centrality (without considering edge length).
|
<ID extends Comparable<ID>> |
wcc(PgxGraph graph)
Blocking version of
#wccAsync() . |
<ID extends Comparable<ID>> |
wccAsync(PgxGraph graph)
Find weakly connected components through label propagation time complexity: O(E * D) with E = number of edges, D = diameter of the graph
|
<ID extends Comparable<ID>> |
whomToFollow(PgxGraph graph, ID vertexId, int max)
Convenience wrapper around
whomToFollow(PgxGraph, PgxVertex, int) taking a vertex ID instead of a PgxVertex . |
<ID extends Comparable<ID>> |
whomToFollow(PgxGraph graph, ID vertexId, int max, int circleOfTrustSize, int randomWalkSteps, double randomWalkResetProbablitiy, double salsaDampingFactor, int salsaMaxIterations, double salsaMaxDiff)
Convenience wrapper around
whomToFollow(PgxGraph, PgxVertex, int, int, int, double, double, int, double) taking a vertex ID instead of a PgxVertex . |
<ID extends Comparable<ID>> |
whomToFollow(PgxGraph graph, PgxVertex<ID> vertex, int max)
Blocking version of
whomToFollowAsync(PgxGraph, PgxVertex, int) . |
<ID extends Comparable<ID>> |
whomToFollow(PgxGraph graph, PgxVertex<ID> vertex, int max, int circleOfTrustSize, int randomWalkSteps, double randomWalkResetProbablitiy, double salsaDampingFactor, int salsaMaxIterations, double salsaMaxDiff)
Blocking version of
whomToFollowAsync(PgxGraph, PgxVertex, int, int, int, double, double, int, double) . |
<ID extends Comparable<ID>> |
whomToFollowAsync(PgxGraph graph, PgxVertex<ID> vertex, int max)
Convenience method around
whomToFollowAsync(PgxGraph, PgxVertex, int, int, int, double, double, int, double) using circleOfTrustSize = 500 randomWalkSteps = 50000 randomWalkResetProbablitiy = 0.15 salsaDampingFactor = 0.85 salsaMaxIterations = 1.10 salsaMaxDiff = 0.01 |
<ID extends Comparable<ID>> |
whomToFollowAsync(PgxGraph graph, PgxVertex<ID> vertex, int max, int circleOfTrustSize, int randomWalkSteps, double randomWalkResetProbablitiy, double salsaDampingFactor, int salsaMaxIterations, double salsaMaxDiff)
The Who to Follow recommendation algorithm by Twitter, Inc.
|
close, destroy, destroyAsync
@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> VertexProperty<ID,Double> approximateVertexBetweennessCentrality(PgxGraph graph, int k) throws ExecutionException, InterruptedException
#approximateVertexBetweennessCentralityAsync()
. Calls #approximateVertexBetweennessCentralityAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<VertexProperty<ID,Double>> approximateVertexBetweennessCentralityAsync(PgxGraph graph, int k)
graph
- graph namek
- how many random selected seed vertices to use@SafeVarargs @Generated(value="src/python/synchronize.py") public final <ID extends Comparable<ID>> VertexProperty<ID,Double> approximateVertexBetweennessCentralityFromSeeds(PgxGraph graph, PgxVertex<ID>... seeds) throws ExecutionException, InterruptedException
#approximateVertexBetweennessCentralityFromSeedsAsync()
. Calls #approximateVertexBetweennessCentralityFromSeedsAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.@SafeVarargs public final <ID extends Comparable<ID>> PgxFuture<VertexProperty<ID,Double>> approximateVertexBetweennessCentralityFromSeedsAsync(PgxGraph graph, PgxVertex<ID>... seeds)
graph
- graphseeds
- collection@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> VertexProperty<ID,Double> closenessCentralityDoubleLength(PgxGraph graph, EdgeProperty<Double> cost) throws ExecutionException, InterruptedException
#closenessCentralityDoubleLengthAsync()
. Calls #closenessCentralityDoubleLengthAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<VertexProperty<ID,Double>> closenessCentralityDoubleLengthAsync(PgxGraph graph, EdgeProperty<Double> cost)
graph
- graphcost
- Edge Property of the cost@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> VertexProperty<ID,Double> closenessCentralityUnitLength(PgxGraph graph) throws ExecutionException, InterruptedException
#closenessCentralityUnitLengthAsync()
. Calls #closenessCentralityUnitLengthAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<VertexProperty<ID,Double>> closenessCentralityUnitLengthAsync(PgxGraph graph)
graph
- graph@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> Partition<ID> communitiesLabelPropagation(PgxGraph graph) throws ExecutionException, InterruptedException
#communitiesLabelPropagationAsync()
. Calls #communitiesLabelPropagationAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<Partition<ID>> communitiesLabelPropagationAsync(PgxGraph graph)
graph
- graph@Generated(value="src/python/synchronize.py") public long countTriangles(PgxGraph graph, boolean sortVerticesByDegree) throws ExecutionException, InterruptedException
#countTrianglesAsync()
. Calls #countTrianglesAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Long> countTrianglesAsync(PgxGraph graph, boolean sortVerticesByDegree)
graph
- graphsortVerticesByDegree
- if true
, the undirected copy of the graph will be sorted by degree. You can use this flag to trade memory for speed. If sorted, the algorithm usually terminates faster, but the peak memory consumption increases.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> VertexProperty<ID,Integer> degreeCentrality(PgxGraph graph) throws ExecutionException, InterruptedException
#degreeCentralityAsync()
. Calls #degreeCentralityAsync()
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<VertexProperty<ID,Integer>> degreeCentralityAsync(PgxGraph graph)
graph
- graph@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> VertexProperty<ID,Double> eigenvectorCentrality(PgxGraph graph, int max, double maxDiff, boolean useL2Norm, boolean useInEdge) throws ExecutionException, InterruptedException
#eigenvectorCentralityAsync()
. Calls #eigenvectorCentralityAsync()
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<VertexProperty<ID,Double>> eigenvectorCentralityAsync(PgxGraph graph, int max, double maxDiff, boolean useL2Norm, boolean useInEdge)
ID
- the generic typegraph
- graph where used for the algorithmmax
- maximum number of iterationsmaxDiff
- maximum error for terminating the iterationuseL2Norm
- true- use L2Norm for normalization. false - use L1NormuseInEdge
- true- compute 'left' eigenvector, false - compute 'right' eigenvectorpublic <ID extends Comparable<ID>> AllPaths<ID> fattestPath(PgxGraph graph, ID rootId, EdgeProperty<Double> capacity) throws ExecutionException, InterruptedException
fattestPath(PgxGraph, PgxVertex, EdgeProperty)
taking a vertex ID instead of a PgxVertex
.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> AllPaths<ID> fattestPath(PgxGraph graph, PgxVertex<ID> root, EdgeProperty<Double> capacity) throws ExecutionException, InterruptedException
#fattestPathAsync()
. Calls #fattestPathAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<AllPaths<ID>> fattestPathAsync(PgxGraph graph, PgxVertex<ID> root, EdgeProperty<Double> capacity)
graph
- graphcapacity
- edge property containing the capacity of each edge. Capacity may be negative. In case of an undirected graph, the capacity of the forward and backward edge should be the same.root
- the starting vertex of the algorithmDouble.POSITIVE_INFINITY
for the root vertex and 0.0 for all vertices not connected to root.public PgxSession getSession()
@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> Pair<VertexProperty<ID,Double>,VertexProperty<ID,Double>> hits(PgxGraph graph, int max) throws ExecutionException, InterruptedException
#hitsAsync()
. Calls #hitsAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<Pair<VertexProperty<ID,Double>,VertexProperty<ID,Double>>> hitsAsync(PgxGraph graph, int max)
graph
- graphmax
- maximum number of iterations@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> VertexProperty<ID,Integer> inDegreeCentrality(PgxGraph graph) throws ExecutionException, InterruptedException
#inDegreeCentralityAsync()
. Calls #inDegreeCentralityAsync()
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<VertexProperty<ID,Integer>> inDegreeCentralityAsync(PgxGraph graph)
graph
- graph@Generated(value="src/python/synchronize.py") public PgxMap<Integer,Long> inDegreeDistribution(PgxGraph graph) throws ExecutionException, InterruptedException
#inDegreeDistributionAsync()
. Calls #inDegreeDistributionAsync()
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<PgxMap<Integer,Long>> inDegreeDistributionAsync(PgxGraph graph)
graph
- graph@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> VertexProperty<ID,Integer> outDegreeCentrality(PgxGraph graph) throws ExecutionException, InterruptedException
#outDegreeCentralityAsync()
. Calls #outDegreeCentralityAsync()
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<VertexProperty<ID,Integer>> outDegreeCentralityAsync(PgxGraph graph)
graph
- graph@Generated(value="src/python/synchronize.py") public PgxMap<Integer,Long> outDegreeDistribution(PgxGraph graph) throws ExecutionException, InterruptedException
#outDegreeDistributionAsync()
. Calls #outDegreeDistributionAsync()
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<PgxMap<Integer,Long>> outDegreeDistributionAsync(PgxGraph graph)
graph
- graph@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> VertexProperty<ID,Double> pagerank(PgxGraph graph, double e, double d, int max) throws ExecutionException, InterruptedException
#pagerankAsync()
. Calls #pagerankAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<VertexProperty<ID,Double>> pagerankAsync(PgxGraph graph, double e, double d, int max)
graph
- graphe
- maximum error for terminating the iterationd
- damping factormax
- maximum number of iterations@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> Pair<Scalar<Double>,Scalar<Double>> partitionConductance(PgxGraph graph, Partition<ID> components) throws ExecutionException, InterruptedException
#partitionConductanceAsync()
. Calls #partitionConductanceAsync()
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<Pair<Scalar<Double>,Scalar<Double>>> partitionConductanceAsync(PgxGraph graph, Partition<ID> partition)
graph
- graphpartition
- the partition to analyze@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> Scalar<Double> partitionModularity(PgxGraph graph, Partition<ID> components) throws ExecutionException, InterruptedException
#partitionModularityAsync()
. Calls #partitionModularityAsync()
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<Scalar<Double>> partitionModularityAsync(PgxGraph graph, Partition<ID> partition)
graph
- graphpartition
- the partition to analyzepublic <ID extends Comparable<ID>> VertexProperty<ID,Double> personalizedPagerank(PgxGraph graph, ID vertexId, double e, double d, int max) throws ExecutionException, InterruptedException
personalizedPagerank(PgxGraph, PgxVertex, double, double, int)
taking a vertex ID instead of a PgxVertex
.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> VertexProperty<ID,Double> personalizedPagerank(PgxGraph graph, PgxVertex<ID> v, double e, double d, int max) throws ExecutionException, InterruptedException
personalizedPagerankAsync(PgxGraph, PgxVertex, double, double, int)
. Calls personalizedPagerankAsync(PgxGraph, PgxVertex, double, double, int)
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> VertexProperty<ID,Double> personalizedPagerank(PgxGraph graph, VertexSet<ID> vertices, double e, double d, int max) throws ExecutionException, InterruptedException
personalizedPagerankAsync(PgxGraph, VertexSet, double, double, int)
. Calls personalizedPagerankAsync(PgxGraph, VertexSet, double, double, int)
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<VertexProperty<ID,Double>> personalizedPagerankAsync(PgxGraph graph, PgxVertex<ID> v, double e, double d, int max)
graph
- graphv
- vertexe
- maximum error for terminating the iterationd
- damping factormax
- maximum number of iterationspublic <ID extends Comparable<ID>> PgxFuture<VertexProperty<ID,Double>> personalizedPagerankAsync(PgxGraph graph, VertexSet<ID> vertices, double e, double d, int max)
graph
- graphvertices
- input verticese
- maximum error for terminating the iterationd
- damping factormax
- maximum number of iterations@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> Pair<VertexSequence<ID>,VertexSequence<ID>> salsa(BipartiteGraph graph, int k) throws ExecutionException, InterruptedException
salsaAsync(BipartiteGraph, int)
. Calls salsaAsync(BipartiteGraph, int)
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> Pair<VertexSequence<ID>,VertexSequence<ID>> salsa(BipartiteGraph graph, int k, double maxDiff, double d, int maxIter) throws ExecutionException, InterruptedException
salsaAsync(BipartiteGraph, int, double, double, int)
. Calls salsaAsync(BipartiteGraph, int, double, double, int)
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<Pair<VertexSequence<ID>,VertexSequence<ID>>> salsaAsync(BipartiteGraph graph, int k)
salsaAsync(BipartiteGraph, int, double, double, int)
using
public <ID extends Comparable<ID>> PgxFuture<Pair<VertexSequence<ID>,VertexSequence<ID>>> salsaAsync(BipartiteGraph graph, int k, double maxDiff, double d, int maxIter)
graph
- a bipartite graphk
- the top K vertices will be returned in hub_recs and auth_recs (so K+K vertices will be returned)maxDiff
- the maximum diffd
- damping factormaxIter
- the maximum number of iterations@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> Partition<ID> sccKosaraju(PgxGraph graph) throws ExecutionException, InterruptedException
#sccKosarajuAsync()
. Calls #sccKosarajuAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<Partition<ID>> sccKosarajuAsync(PgxGraph graph)
graph
- graph@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> Partition<ID> sccTarjan(PgxGraph graph) throws ExecutionException, InterruptedException
#sccTarjanAsync()
. Calls #sccTarjanAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<Partition<ID>> sccTarjanAsync(PgxGraph graph)
graph
- graphpublic <ID extends Comparable<ID>> AllPaths<ID> shortestPathBellmanFord(PgxGraph graph, ID srcId, EdgeProperty<Double> cost) throws ExecutionException, InterruptedException
shortestPathBellmanFord(PgxGraph, PgxVertex, EdgeProperty)
taking a vertex ID instead of PgxVertex
.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> AllPaths<ID> shortestPathBellmanFord(PgxGraph graph, PgxVertex<ID> src, EdgeProperty<Double> cost) throws ExecutionException, InterruptedException
#shortestPathBellmanFordAsync()
. Calls #shortestPathBellmanFordAsync()
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<AllPaths<ID>> shortestPathBellmanFordAsync(PgxGraph graph, PgxVertex<ID> src, EdgeProperty<Double> cost)
graph
- graphcost
- edge property (of type double) holding the edge costs of the graphsrc
- source vertex (has to be of type 'PgxVertex<ID>' as specified in loader config of graph)public <ID extends Comparable<ID>> AllPaths<ID> shortestPathBellmanFordReverse(PgxGraph graph, ID srcId, EdgeProperty<Double> cost) throws ExecutionException, InterruptedException
shortestPathBellmanFordReverse(PgxGraph, PgxVertex, EdgeProperty)
taking a vertex ID instead of PgxVertex
.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> AllPaths<ID> shortestPathBellmanFordReverse(PgxGraph graph, PgxVertex<ID> src, EdgeProperty<Double> cost) throws ExecutionException, InterruptedException
#shortestPathBellmanFordReverseAsync()
. Calls #shortestPathBellmanFordReverseAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<AllPaths<ID>> shortestPathBellmanFordReverseAsync(PgxGraph graph, PgxVertex<ID> src, EdgeProperty<Double> cost)
graph
- graphcost
- edge property (of type double) holding the edge costs of the graphsrc
- source vertex (has to be of type 'PgxVertex<ID>' as specified in loader config of graph)public <ID extends Comparable<ID>> PgxPath<ID> shortestPathDijkstra(PgxGraph graph, ID srcId, ID dstId, EdgeProperty<Double> cost) throws ExecutionException, InterruptedException
shortestPathDijkstra(PgxGraph, PgxVertex, PgxVertex, EdgeProperty)
taking vertex IDs instead of PgxVertex
.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> PgxPath<ID> shortestPathDijkstra(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost) throws ExecutionException, InterruptedException
#shortestPathDijkstraAsync()
. Calls #shortestPathDijkstraAsync()
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<PgxPath<ID>> shortestPathDijkstraAsync(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost)
graph
- graphsrc
- source vertex (has to be of type 'PgxVertex<ID>' as specified in loader config of graph)dst
- destination vertex (has to be of type 'PgxVertex<ID>' as specified in loader config of graph)cost
- edge property (of type double) holding the edge costs of the graphpublic <ID extends Comparable<ID>> PgxPath<ID> shortestPathDijkstraBidirectional(PgxGraph graph, ID srcId, ID dstId, EdgeProperty<Double> cost) throws ExecutionException, InterruptedException
shortestPathDijkstraBidirectional(PgxGraph, PgxVertex, PgxVertex, EdgeProperty)
taking vertex IDs instead of PgxVertex
.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> PgxPath<ID> shortestPathDijkstraBidirectional(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost) throws ExecutionException, InterruptedException
#shortestPathDijkstraBidirectionalAsync()
. Calls #shortestPathDijkstraBidirectionalAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<PgxPath<ID>> shortestPathDijkstraBidirectionalAsync(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost)
graph
- graphcost
- the edge property (of type double) holding the edge costs of the graphsrc
- source vertex (has to be of type 'PgxVertex<ID>' as specified in loader config of graph)dst
- destination vertex (has to be of type 'PgxVertex<ID>' as specified in loader config of graph)public <ID extends Comparable<ID>> PgxPath<ID> shortestPathFilteredDijkstra(PgxGraph graph, ID srcId, ID dstId, EdgeProperty<Double> cost, GraphFilter filterExpr) throws ExecutionException, InterruptedException
shortestPathFilteredDijkstra(PgxGraph, PgxVertex, PgxVertex, EdgeProperty, GraphFilter)
taking vertex IDs instead of PgxVertex
.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> PgxPath<ID> shortestPathFilteredDijkstra(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost, GraphFilter filterExpr) throws ExecutionException, InterruptedException
#shortestPathFilteredDijkstraAsync()
. Calls #shortestPathFilteredDijkstraAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<PgxPath<ID>> shortestPathFilteredDijkstraAsync(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost, GraphFilter filterExpr)
graph
- graphcost
- edge property (of type double) holding the edge costs of the graphsrc
- source vertex (has to be of type 'PgxVertex<ID>' as specified in loader config of graph)dst
- destination vertex (has to be of type 'PgxVertex<ID>' as specified in loader config of graph)filterExpr
- filter expression that is evaluated during traversalpublic <ID extends Comparable<ID>> PgxPath<ID> shortestPathFilteredDijkstraBidirectional(PgxGraph graph, ID srcId, ID dstId, EdgeProperty<Double> cost, GraphFilter filterExpr) throws ExecutionException, InterruptedException
shortestPathFilteredDijkstraBidirectional(PgxGraph, PgxVertex, PgxVertex, EdgeProperty, GraphFilter)
taking vertex IDs instead of PgxVertex
.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> PgxPath<ID> shortestPathFilteredDijkstraBidirectional(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost, GraphFilter filterExpr) throws ExecutionException, InterruptedException
#shortestPathFilteredDijkstraBidirectionalAsync()
. Calls #shortestPathFilteredDijkstraBidirectionalAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<PgxPath<ID>> shortestPathFilteredDijkstraBidirectionalAsync(PgxGraph graph, PgxVertex<ID> src, PgxVertex<ID> dst, EdgeProperty<Double> cost, GraphFilter filterExpr)
graph
- graphcost
- the edge property (of type double) holding the edge costs of the graphsrc
- source vertex (has to be of type 'PgxVertex<ID>' as specified in loader config of graph)dst
- destination vertex (has to be of type 'PgxVertex<ID>' as specified in loader config of graph)filterExpr
- filter expression that is evaluated during traversalpublic <ID extends Comparable<ID>> AllPaths<ID> shortestPathHopDist(PgxGraph graph, ID srcId) throws ExecutionException, InterruptedException
shortestPathHopDist(PgxGraph, PgxVertex)
taking a vertex ID instead of PgxVertex
.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> AllPaths<ID> shortestPathHopDist(PgxGraph graph, PgxVertex<ID> src) throws ExecutionException, InterruptedException
#shortestPathHopDistAsync()
. Calls #shortestPathHopDistAsync()
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<AllPaths<ID>> shortestPathHopDistAsync(PgxGraph graph, PgxVertex<ID> src)
graph
- graphsrc
- source vertex (has to be of type 'PgxVertex<ID>' as specified in loader config of graph)public <ID extends Comparable<ID>> AllPaths<ID> shortestPathHopDistReverse(PgxGraph graph, ID srcId) throws ExecutionException, InterruptedException
shortestPathHopDistReverse(PgxGraph, PgxVertex)
taking a vertex ID instead of PgxVertex
.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> AllPaths<ID> shortestPathHopDistReverse(PgxGraph graph, PgxVertex<ID> src) throws ExecutionException, InterruptedException
#shortestPathHopDistReverseAsync()
. Calls #shortestPathHopDistReverseAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<AllPaths<ID>> shortestPathHopDistReverseAsync(PgxGraph graph, PgxVertex<ID> src)
graph
- graphsrc
- source vertex (has to be of type 'PgxVertex<ID>' as specified in loader config of graph)@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> VertexProperty<ID,Double> vertexBetweennessCentrality(PgxGraph graph) throws ExecutionException, InterruptedException
#vertexBetweennessCentralityAsync()
. Calls #vertexBetweennessCentralityAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<VertexProperty<ID,Double>> vertexBetweennessCentralityAsync(PgxGraph graph)
graph
- graph@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> Partition<ID> wcc(PgxGraph graph) throws ExecutionException, InterruptedException
#wccAsync()
. Calls #wccAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<Partition<ID>> wccAsync(PgxGraph graph)
graph
- graphpublic <ID extends Comparable<ID>> Pair<VertexSequence<ID>,VertexSequence<ID>> whomToFollow(PgxGraph graph, ID vertexId, int max) throws ExecutionException, InterruptedException
whomToFollow(PgxGraph, PgxVertex, int)
taking a vertex ID instead of a PgxVertex
.public <ID extends Comparable<ID>> Pair<VertexSequence<ID>,VertexSequence<ID>> whomToFollow(PgxGraph graph, ID vertexId, int max, int circleOfTrustSize, int randomWalkSteps, double randomWalkResetProbablitiy, double salsaDampingFactor, int salsaMaxIterations, double salsaMaxDiff) throws ExecutionException, InterruptedException
whomToFollow(PgxGraph, PgxVertex, int, int, int, double, double, int, double)
taking a vertex ID instead of a PgxVertex
.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> Pair<VertexSequence<ID>,VertexSequence<ID>> whomToFollow(PgxGraph graph, PgxVertex<ID> vertex, int max) throws ExecutionException, InterruptedException
whomToFollowAsync(PgxGraph, PgxVertex, int)
. Calls whomToFollowAsync(PgxGraph, PgxVertex, int)
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.@Generated(value="src/python/synchronize.py") public <ID extends Comparable<ID>> Pair<VertexSequence<ID>,VertexSequence<ID>> whomToFollow(PgxGraph graph, PgxVertex<ID> vertex, int max, int circleOfTrustSize, int randomWalkSteps, double randomWalkResetProbablitiy, double salsaDampingFactor, int salsaMaxIterations, double salsaMaxDiff) throws ExecutionException, InterruptedException
whomToFollowAsync(PgxGraph, PgxVertex, int, int, int, double, double, int, double)
. Calls whomToFollowAsync(PgxGraph, PgxVertex, int, int, int, double, double, int, double)
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID extends Comparable<ID>> PgxFuture<Pair<VertexSequence<ID>,VertexSequence<ID>>> whomToFollowAsync(PgxGraph graph, PgxVertex<ID> vertex, int max)
whomToFollowAsync(PgxGraph, PgxVertex, int, int, int, double, double, int, double)
using
graph
- the graphvertex
- the vertexmax
- maximum amount of recommendations to returnpublic <ID extends Comparable<ID>> PgxFuture<Pair<VertexSequence<ID>,VertexSequence<ID>>> whomToFollowAsync(PgxGraph graph, PgxVertex<ID> vertex, int max, int circleOfTrustSize, int randomWalkSteps, double randomWalkResetProbablitiy, double salsaDampingFactor, int salsaMaxIterations, double salsaMaxDiff)
BipartiteGraph
with the circle of trust as left set and runs the salsaAsync(BipartiteGraph, int, double, double, int)
recommendation algorithm on that graph to compute the hubs and authorities.graph
- the graphvertex
- the vertexmax
- maximum amount of recommendations to returncircleOfTrustSize
- maximum size of the circle of trustrandomWalkSteps
- the amount of random walk stepsrandomWalkResetProbablitiy
- likeliness of reset during the random walk (must be between 0.0 and 1.1)salsaDampingFactor
- the damping factor for the SALSA algorithmsalsaMaxIterations
- the maximum amount of iterations for the SALSA algorithmsalsaMaxDiff
- the maximum diff value for the SALSA algorithmCopyright © 2015. All rights reserved.