Implementation of a theoretical connectivity algorithm in Java
make all
javac -cp './bin/;./lib/*' -d ./bin/ ./src/*.java
javac -cp './bin/:./lib/*' -d ./bin/ ./src/*.java
make run
java -cp './bin/;./lib/*' MainGUI
java -cp './bin/:./lib/*' MainGUI
make all
java -cp './bin/;./lib/*' MainBody
java -cp './bin/:./lib/*' MainBody
Set options with flags:
Use --help
flag to see usage details:
Usage: MainBody [--help] [<args>] [-i <path>]
Input file:
-i followed by the path to input text file
Type of input data:
-g for GPS coordinates (Default)
-m for MATLAB generated coordinates
MST algorithm to be used:
-k for Kruskal's algorithm (Default)
-p for Prim's algorithm
./input/in.txt
for an example of how to set up GPS coordinates./input/min.txt
for an example of how to set up MATLAB generated coordinatesmake graphGNU
make graphJava
javac -cp './bin/;./lib/*' -d ./bin/ ./src/*.java
javac -cp './bin/:./lib/*' -d ./bin/ ./src/*.java
java -cp './bin/;./lib/*' MainBody
java -cp './bin/:./lib/*' MainBody
Set options with flags:
Use --help
flag to see usage details:
Usage: MainBody [--help] [<args>] [-i <path>]
Input file:
-i followed by the path to input text file
Type of input data:
-g for GPS coordinates (Default)
-m for MATLAB generated coordinates
MST algorithm to be used:
-k for Kruskal's algorithm (Default)
-p for Prim's algorithm
./input/in.txt
for an example of how to set up GPS coordinates./input/min.txt
for an example of how to set up MATLAB generated coordinatesgnuplot -persist ./gnuplot/graph.gnu
java -cp './bin/;./lib/*' TransformScale
java -cp './bin/:./lib/*' TransformScale
export PATH="$PATH:/c/Program Files/gnuplot/bin"
Note: OS X does not come with a package manager, we recommend Homebrew.
brew install qt
brew install gnuplot --with-qt
sudo apt-get install gnuplot
su root
apt-get install gnuplot
Note: Use yum
instead of dnf
if on Fedora 21 or older.
su root
dnf install gnuplot