Skip to content

Commit 8f4afe5

Browse files
committed
edge.one is now edge.from
edge.two is now edge.to
1 parent 0b5ac01 commit 8f4afe5

13 files changed

Lines changed: 11 additions & 10 deletions

MakeImages.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def usageBaseScriptMethod() {
2727
edge 'A', 'B'
2828
assert graph.vertices.keySet() == ['A', 'B'] as Set
2929
assert graph.edges.size() == 1
30-
assert graph.edges.first() == new Edge(one:'A', two:'B')
30+
assert graph.edges.first() == new Edge(from:'A', to:'B')
3131
image 'images/base-script-method.png'
3232
'''
3333
}
@@ -42,7 +42,7 @@ def usageGraphMethod() {
4242
4343
assert graph.vertices.keySet() == ['A', 'B'] as Set
4444
assert graph.edges.size() == 1
45-
assert graph.edges.first() == new Edge(one:'A', two:'B')
45+
assert graph.edges.first() == new Edge(from:'A', to:'B')
4646
graph.plugin 'graphviz'
4747
graph.image 'images/graph-method.png'
4848
'''

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ plugin 'graphviz'
3232
edge 'A', 'B'
3333
assert graph.vertices.keySet() == ['A', 'B'] as Set
3434
assert graph.edges.size() == 1
35-
assert graph.edges.first() == new Edge(one:'A', two:'B')
35+
assert graph.edges.first() == new Edge(from:'A', to:'B')
3636
image 'images/base-script-method.png'
3737
```
3838

@@ -61,7 +61,7 @@ def graph = graph {
6161
6262
assert graph.vertices.keySet() == ['A', 'B'] as Set
6363
assert graph.edges.size() == 1
64-
assert graph.edges.first() == new Edge(one:'A', two:'B')
64+
assert graph.edges.first() == new Edge(from:'A', to:'B')
6565
graph.plugin 'graphviz'
6666
graph.image 'images/graph-method.png'
6767
```
@@ -542,6 +542,8 @@ If there are any issues contact me moaxcp@gmail.com.
542542
## 0.25.0
543543

544544
* vertex.key has been renamed to vertex.id
545+
* edge.one has been renamed to edge.from
546+
* edge.two has been renamed to edge.to
545547

546548
## 0.24.0
547549

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ configurations {
182182
dependencies {
183183
compile "org.codehaus.groovy:groovy:$groovyVersion"
184184

185-
testCompile( 'com.athaydes:spock-reports:1.4.0' ) {
185+
testCompile( 'com.athaydes:spock-reports:1.6.0' ) {
186186
transitive = false
187187
}
188188
testCompile 'org.slf4j:slf4j-api:1.7.25'

images/base-script-method.png

149 Bytes
Loading

images/breadth-first-traversal.png

1.8 KB
Loading
1.33 KB
Loading
1.03 KB
Loading

images/edge-classification.png

1.12 KB
Loading

images/graph-method.png

149 Bytes
Loading

images/post-order-traversal.png

1.81 KB
Loading

0 commit comments

Comments
 (0)