def connect2(s1, s2, p):
    """
	Connects 2 state objects with a given probability.

	Parameters
	----------
	+ s1 `State` state 1
	+ s2 `State` state 2
	+ p  `float` transition probability
	"""
    s1.next[s2.name] = p
