dwave.embedding.adjacency_to_edges#
- adjacency_to_edges(adjacency)[source]#
Convert an adjacency object to an edge iterator.
- Parameters:
adjacency (dict/
networkx.Graph/dimod.BQM) – Adjacency object as a dict of form{s: Ns, ...}, wheresis a variable in the graph andNsis the set of neighbors ofs; or a NetworkX graph; or a binary quadratic model.- Yields:
tuple – A 2-tuple, corresponding to an edge in the provided graph.