graph.Weight.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graph-dsl Show documentation
Show all versions of graph-dsl Show documentation
A groovy dsl for creating and traversing graphs.
package graph
trait Weight {
private Closure weight
int getWeight() {
weight.delegate = this
weight.call()
}
def weight(Closure c) {
weight = c
}
}