Skip to content

Commit 2c2ec49

Browse files
Add example to README
1 parent cb26964 commit 2c2ec49

File tree

17 files changed

+133
-1
lines changed

17 files changed

+133
-1
lines changed

A-Star/Images/graph.dot

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
digraph G {
2+
rankdir=LR;
3+
{ A [ label = "h = 3" ] }
4+
{ rank = same; B [ label = "h = 2" ]; C [ label = "h = 2" ]; D [ label = "h = 2" ] }
5+
{ rank = same; E [ label = "h = 1" ]; F [ label = "h = 1" ]; G [ label = "h = 1" ] }
6+
{ H [ label = "h = 0", style = filled, color = green ] }
7+
A -> { B C D }
8+
B -> E
9+
E -> F
10+
D -> G
11+
G -> H
12+
}

A-Star/Images/graph.png

20.4 KB
Loading

A-Star/Images/step1.dot

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
digraph G {
2+
rankdir=LR;
3+
{ A [ label = "g = 0\nh = 3", style = filled, color = deepskyblue1 ] }
4+
{ rank = same; B [ label = "g = 1\nh = 2", style = filled, color = lightgrey ]; C [ label = "g = 1\nh = 2", style = filled, color = lightgrey ]; D [ label = "g = 1\nh = 2", style = filled, color = lightgrey ] }
5+
{ rank = same; E [ label = "g = \?\nh = 1" ]; F [ label = "g = \?\nh = 1" ]; G [ label = "g = \?\nh = 1" ] }
6+
{ H [ label = "g = \?\nh = 0" ] }
7+
A -> { B C D }
8+
B -> E
9+
E -> F
10+
D -> G
11+
G -> H
12+
}

A-Star/Images/step1.png

28.1 KB
Loading

A-Star/Images/step2.dot

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
digraph G {
2+
rankdir=LR;
3+
{ A [ label = "g = 0\nh = 3", style = filled, color = lightblue ] }
4+
{ rank = same; B [ label = "g = 1\nh = 2", style = filled, color = deepskyblue1 ]; C [ label = "g = 1\nh = 2", style = filled, color = lightgrey ]; D [ label = "g = 1\nh = 2", style = filled, color = lightgrey ] }
5+
{ rank = same; E [ label = "g = 2\nh = 1", style = filled, color = lightgrey ]; F [ label = "g = \?\nh = 1" ]; G [ label = "g = \?\nh = 1" ] }
6+
{ H [ label = "g = \?\nh = 0" ] }
7+
A -> { B C D }
8+
B -> E
9+
E -> F
10+
D -> G
11+
G -> H
12+
}

A-Star/Images/step2.png

28.4 KB
Loading

A-Star/Images/step3.dot

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
digraph G {
2+
rankdir=LR;
3+
{ A [ label = "g = 0\nh = 3", style = filled, color = lightblue ] }
4+
{ rank = same; B [ label = "g = 1\nh = 2", style = filled, color = lightblue ]; C [ label = "g = 1\nh = 2", style = filled, color = deepskyblue1 ]; D [ label = "g = 1\nh = 2", style = filled, color = lightgrey ] }
5+
{ rank = same; E [ label = "g = 2\nh = 1", style = filled, color = lightgrey ]; F [ label = "g = \?\nh = 1" ]; G [ label = "g = \?\nh = 1" ] }
6+
{ H [ label = "g = \?\nh = 0" ] }
7+
A -> { B C D }
8+
B -> E
9+
E -> F
10+
D -> G
11+
G -> H
12+
}

A-Star/Images/step3.png

29.5 KB
Loading

A-Star/Images/step4.dot

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
digraph G {
2+
rankdir=LR;
3+
{ A [ label = "g = 0\nh = 3", style = filled, color = lightblue ] }
4+
{ rank = same; B [ label = "g = 1\nh = 2", style = filled, color = lightblue ]; C [ label = "g = 1\nh = 2", style = filled, color = lightblue ]; D [ label = "g = 1\nh = 2", style = filled, color = deepskyblue1 ] }
5+
{ rank = same; E [ label = "g = 2\nh = 1", style = filled, color = lightgrey ]; F [ label = "g = \?\nh = 1" ]; G [ label = "g = 2\nh = 1", style = filled, color = lightgrey ] }
6+
{ H [ label = "g = \?\nh = 0" ] }
7+
A -> { B C D }
8+
B -> E
9+
E -> F
10+
D -> G
11+
G -> H
12+
}

A-Star/Images/step4.png

29.4 KB
Loading

0 commit comments

Comments
 (0)