public class EuclideanGraphWeighing extends Object implements ProgramDescription
Given a directed, unweighted graph, with vertex values representing points in a plain, return a weighted graph where the edge weights are equal to the Euclidean distance between the src and the trg vertex values.
Input files are plain text files and must be formatted as follows:
1,1.0,1.0\n2,2.0,2.0\n3,3.0,3.0\ndefines a data set of three vertices
1,2\n1,3\ndefines two edges 1-2 and 1-3.
EuclideanGraphWeighing <vertex path> <edge path> <result path>
If no parameters are provided, the program is run with default data from
|Modifier and Type||Class and Description|
A simple two-dimensional point.
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns a description of the plan that is generated by the assembler and also of the arguments if they are available.
public String getDescription()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.