public class SingleSourceShortestPaths extends Object implements ProgramDescription
GSASingleSourceShortestPaths
.
The input file is a plain text file and must be formatted as follows:
Edges are represented by tuples of srcVertexId, trgVertexId, distance which are
separated by tabs. Edges themselves are separated by newlines.
For example: 1\t2\t0.1\n1\t3\t1.4\n
defines two edges,
edge 1-2 with distance 0.1, and edge 1-3 with distance 1.4.
If no parameters are provided, the program is run with default data from
SingleSourceShortestPathsData
Modifier and Type | Class and Description |
---|---|
static class |
SingleSourceShortestPaths.MinDistanceMessenger
Distributes the minimum distance associated with a given vertex among all
the target vertices summed up with the edge's value.
|
static class |
SingleSourceShortestPaths.VertexDistanceUpdater
Function that updates the value of a vertex by picking the minimum
distance from all incoming messages.
|
Constructor and Description |
---|
SingleSourceShortestPaths() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a description of the plan that is generated by the assembler and
also of the arguments if they are available.
|
static void |
main(String[] args) |
public String getDescription()
ProgramDescription
getDescription
in interface ProgramDescription
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.