File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- layout : post
3
2
title : Sample application: Graph Shell
4
3
---
5
4
@@ -12,19 +11,19 @@ To demonstrate the work of search algorithms, I made a small console program. Th
12
11
To compile the program, use the command:
13
12
14
13
``` shell
15
- ~ /algorithms/graph-shell $ gradle assemble
14
+ $ gradle assemble
16
15
```
17
16
18
17
This command will create an executable jar, so in Linux or macOS you may run the application by
19
18
20
19
``` shell
21
- ~ /algorithms/graph-shell $ ./build/libs/graph-shell-1.0-SNAPSHOT.jar
20
+ $ ./build/libs/graph-shell-1.0-SNAPSHOT.jar
22
21
```
23
22
24
23
On the Windows machine you should run the application using java:
25
24
26
25
``` shell
27
- ~ /algorithms/graph-shell $ java -jar ./build/libs/graph-shell-1.0-SNAPSHOT.jar
26
+ $ java -jar ./build/libs/graph-shell-1.0-SNAPSHOT.jar
28
27
```
29
28
30
29
## Using Graph Shell
@@ -38,13 +37,13 @@ graph=simple
38
37
Alternatively you may specify the command line parameter when you run the application:
39
38
40
39
``` shell
41
- ~ /algorithms/graph-shell $ ./build/libs/graph-shell-1.0-SNAPSHOT.jar --graph=medium
40
+ $ ./build/libs/graph-shell-1.0-SNAPSHOT.jar --graph=medium
42
41
```
43
42
44
43
After starting the program you will see the banner and the prompt indicating the current graph scheme.
45
44
46
45
``` shell
47
- jegors@X570UD: ~ /IdeaProjects/algorithms/graph-shell $ ./build/libs/graph-shell-1.0-SNAPSHOT.jar
46
+ $ ./build/libs/graph-shell-1.0-SNAPSHOT.jar
48
47
49
48
_____ _ _____ _ _ _
50
49
/ ____| | | / ____| | | | | | |
You can’t perform that action at this time.
0 commit comments