dimod.AdjDictBQM.to_networkx_graph¶
-
AdjDictBQM.
to_networkx_graph
(node_attribute_name='bias', edge_attribute_name='bias')¶ Convert a binary quadratic model to NetworkX graph format.
- Parameters
node_attribute_name (hashable, optional, default='bias') – Attribute name for linear biases.
edge_attribute_name (hashable, optional, default='bias') – Attribute name for quadratic biases.
- Returns
A NetworkX graph with biases stored as node/edge attributes.
- Return type
Note
This method will be deprecated in the future. The preferred pattern is to use
to_networkx_graph()
.