diff --git a/README.md b/README.md index 8d95bb6..e659036 100644 --- a/README.md +++ b/README.md @@ -99,8 +99,7 @@ flowchart LR C -->|1| A C -->|3| B ``` - - + ### Medium Graph Sample @@ -136,4 +135,7 @@ flowchart LR H --> |3 | G ``` - \ No newline at end of file + + + + diff --git a/algorithm/build.gradle b/algorithm/build.gradle index 655e701..fd0b0f5 100644 --- a/algorithm/build.gradle +++ b/algorithm/build.gradle @@ -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 { diff --git a/docs/simple.puml b/docs/simple.puml new file mode 100644 index 0000000..b64db05 --- /dev/null +++ b/docs/simple.puml @@ -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 diff --git a/graph-shell/src/script/graph2puml.awk b/graph-shell/src/script/graph2puml.awk index 8f7da75..f33160b 100644 --- a/graph-shell/src/script/graph2puml.awk +++ b/graph-shell/src/script/graph2puml.awk @@ -1,3 +1,4 @@ + #!/usr/bin/env gawk --exec # # Copyright (c) 2023 Jegors Čemisovs @@ -17,6 +18,7 @@ BEGIN { } { print $1 + for (i = 2; i < NF; i += 2) print $1, "->", $i, "[label=" $(i + 1) "];" }