Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a5feaf5

Browse files
authored
Update README.md
1 parent cb946d5 commit a5feaf5

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

‎docs/README.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,44 @@
1-
# Documentation
1+
## How to Compile
2+
```
3+
cd src
4+
<c++-compiler> bgaMain.cpp -o bgaMain.exe
5+
```
6+
7+
## How to Run
8+
``` bgaMain.exe <graph-file>```
9+
10+
## Example run
11+
12+
13+
$ src/bgaMain.exe test/dgraph5.txt
14+
```
15+
created graph with 6 nodes and 9 edges.
16+
type 'help' for more options
17+
```
18+
>> help
19+
```
20+
help
21+
print
22+
search <root_node>
23+
sort
24+
mst [prim|kruskal]
25+
path <root_node>
26+
quit
27+
```
28+
>> print
29+
```
30+
graph directed
31+
n2 n3 1
32+
n1 n2 2
33+
...
34+
```
35+
>> path n1
36+
```
37+
nd dist_from_src edge
38+
== ============= ====
39+
n1 0 [none n1 0]
40+
n2 2 [n1 n2 2]
41+
n3 3 [n2 n3 1]
42+
```
43+
44+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /