books and continues the process over and over and over again for 100,000 steps. Starting from the Graph Theory vertex, Gremlin diffuses himself like a wave over the structure that surrounds. gremlin> m = [:].withDefault{1} gremlin> v.transform{ rank = m[it.name]; neighbors = it.out('href').toList(); degree = neighbors.size(); neighbors.each { m[it.name] = m[it.name]