diff --git a/dwave/embedding/chain_breaks.py b/dwave/embedding/chain_breaks.py index 8e6303ee..dfbe01c4 100644 --- a/dwave/embedding/chain_breaks.py +++ b/dwave/embedding/chain_breaks.py @@ -46,13 +46,15 @@ def broken_chains(samples, chains): broken. Examples: + + >>> import numpy as np + ... >>> samples = np.array([[-1, +1, -1, +1], [-1, -1, +1, +1]], dtype=np.int8) >>> chains = [[0, 1], [2, 3]] >>> dwave.embedding.broken_chains(samples, chains) array([[True, True], [ False, False]]) - >>> samples = np.array([[-1, +1, -1, +1], [-1, -1, +1, +1]], dtype=np.int8) >>> chains = [[0, 2], [1, 3]] >>> dwave.embedding.broken_chains(samples, chains) array([[False, False],