code: function Vertex(name, parent) {
          var _this = _super.call(this, name, parent instanceof State ? parent.getDefaultRegion() : parent) || this;
          /** The [[Transition]]s originating from this [[Vertex]]. */
          _this.outgoing = new Array();
          /** The [[Transition]]s targeting this [[Vertex]]. */
          _this.incoming = new Array();
          if (_this.parent) {
              _this.parent.vertices.push(_this);
          }
          _this.getRoot().clean = false;
          return _this;
      }
docs: Creates a new instance of the [[Vertex]] class.
  @param name The name of the [[Vertex]].
  @param parent The parent [[State]] or [[Region]].
  @note Specifting a [[State]] as the parent with cause the constructor to make this [[Vertex]] as child of the [[State]]s [[defaultRegion]].