Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update dependencies for 'Algorithm' module #49

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ flowchart LR
C -->|1| A
C -->|3| B
```

![Small Graph](docs/assets/small.gif)
![Small Graph PlantUML](http://www.plantuml.com/plantuml/svg/bT2n3e8m483XcJv5mmo36EDWQWGMTqV2SD03cXmjQQk9CRwx4CN0fhVTbpyttCbvi5uQpwHgBGmTl_H0n1yiQ8ps6deKuHdfXbxL4ALM0KKEj8iTMjM4BD168Yz-YaiMe6p_gD-tQqF62b9jvokwOX9nv--4eb54ACUjWm55hMnDM1vOaFBuo3DU45H8Ol-bVAPaecoYTARjI7oSR1NkFfglsirIi-M59pkXbkCtNm00)


### Medium Graph Sample
Expand Down Expand Up @@ -136,4 +135,7 @@ flowchart LR
H --> |3 | G
```

![Complex Graph](docs/assets/complex.gif)
![Complex Graph](docs/assets/complex.gif)

![Complex Graph PlantUML](http://www.plantuml.com/plantuml/proxy?cache=no&src=https://raw.githubusercontent.com/rabestro/graph-pathfinding-algorithms/master/graph-shell/docs/complex.puml)

12 changes: 6 additions & 6 deletions algorithm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ publishing {

dependencies {
// Spock Framework
testImplementation 'org.spockframework:spock-core:2.2-groovy-3.0'
testImplementation 'org.codehaus.groovy:groovy-all:3.0.12'
testImplementation 'org.spockframework:spock-core:2.3-groovy-3.0'
testImplementation 'org.codehaus.groovy:groovy-all:3.0.16'

// Spock Reports
testRuntimeClasspath('com.athaydes:spock-reports:2.3.1-groovy-3.0') {
testCompileOnly('com.athaydes:spock-reports:2.4.0-groovy-4.0') {
transitive = false // this avoids affecting your version of Groovy/Spock
}
// Required for spock-reports
testImplementation 'org.slf4j:slf4j-api:2.0.1'
testRuntimeClasspath 'org.slf4j:slf4j-simple:2.0.1'
testImplementation 'org.slf4j:slf4j-api:2.0.5'
testCompileOnly 'org.slf4j:slf4j-simple:2.0.5'

// JUnit 5 Parameterized Tests
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.9.2'
}

test {
Expand Down
15 changes: 15 additions & 0 deletions docs/simple.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@startdot
digraph Small {
fontname="Helvetica,Arial,sans-serif"
node [fontname="Helvetica,Arial,sans-serif"]
edge [fontname="Helvetica,Arial,sans-serif"]
node [color=lightblue2, style=filled, shape=circle];
A
A -> B [label=7];
A -> C [label=2];
B -> A [label=3];
B -> C [label=5];
C -> A [label=1];
C -> B [label=3];
}
@enddot
2 changes: 2 additions & 0 deletions graph-shell/src/script/graph2puml.awk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#!/usr/bin/env gawk --exec
#
# Copyright (c) 2023 Jegors Čemisovs
Expand All @@ -17,6 +18,7 @@ BEGIN {
}
{
print $1

for (i = 2; i < NF; i += 2)
print $1, "->", $i, "[label=" $(i + 1) "];"
}
Expand Down
Loading