public function setType($type, $divisor = 1.0, $offset = 0.0)
    {
        if (!array_key_exists($type, self::$SUPPORTED_TYPES)) {
            throw new \InvalidArgumentException('Invalid Edge Type');
        }
        $this->type = $type;
        $this->divisor = $divisor;
        $this->offset = $offset;

        return $this;
    }