if (i === edges.length)
            self.state = {
              step: 4,
              index: 0
            };