func NewUpgradeSeriesFSM(graph Graph, initial UpgradeSeriesStatus) (*UpgradeSeriesFSM, error) {
	if err := graph.Validate(); err != nil {
		return nil, errors.Trace(err)
	}
	return &UpgradeSeriesFSM{
		state:    initial,
		vertices: graph,
	}, nil
}
// NewUpgradeSeriesFSM creates a UpgradeSeriesFSM from a graph and an initial
// state.
NewUpgradeSeriesFSM creates a UpgradeSeriesFSM from a graph and an initial
state.
// NewUpgradeSeriesFSM creates a UpgradeSeriesFSM from a graph and an initial // state .
func NewUpgradeSeriesFSM(graph Graph, initial UpgradeSeriesStatus) (*UpgradeSeriesFSM, error) {
	if err := graph.Validate(); err != nil {
		return nil, errors.Trace(err)
	}
	return &UpgradeSeriesFSM{
		state:    initial,
		vertices: graph,
	}, nil
}
func NewUpgradeSeriesFSM ( graph Graph , initial UpgradeSeriesStatus ) ( * UpgradeSeriesFSM , error ) { if err := graph . Validate ( ) ; err != nil { return nil , errors . Trace ( err ) } return & UpgradeSeriesFSM { state : initial , vertices : graph , } , nil }
NewUpgradeSeriesFSM creates a UpgradeSeriesFSM from a graph and an initial
state.
NewUpgradeSeriesFSM creates a UpgradeSeriesFSM from a graph and an initial state .