This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dwave_networkx as dnx | |
import networkx as nx | |
from dimod.reference.samplers import ExactSolver | |
from dwave.system.samplers import DWaveSampler | |
from dwave.system.composites import EmbeddingComposite | |
G = nx.complete_graph(4) | |
G.add_weighted_edges_from({(0, 1, 1), (0, 2, 2), (0, 3, 3), (1, 2, 3), (1, 3, 4), (2, 3, 5)}) |