func (it *Iterator) Clone() graph.Iterator { var newM graph.Iterator if it.isAll { newM = NewAllIterator(it.ts, it.collection) } else { newM = NewIterator(it.ts, it.collection, it.dir, it.hash) } newM.CopyTagsFrom(it) return newM }