Graph¶
- class Graph¶
Physical graph information used by graph-embedding solvers.
Methods
Attributes
List of neighbor nodes for each node.
List of graph edges as node ID pairs.
List of node IDs in the graph.
Graph size parameters.
Graph type name, e.g.
"Chimera","Pegasus"forDWaveSamplerClientand"Kings"forHitachiClient.- __init__(*args, **kwargs)¶
- __repr__(self) str¶
- Return type:
str
- __str__(self) str¶
- Return type:
str
- property adjacency¶
List of neighbor nodes for each node.
- Return type:
list[list[int]]
- property edges¶
List of graph edges as node ID pairs.
- Return type:
list[tuple[int, int]]
- property nodes¶
List of node IDs in the graph.
- Return type:
list[int]
- property shape¶
Graph size parameters.
- Return type:
list[int]
- property type¶
Graph type name, e.g.
"Chimera","Pegasus"forDWaveSamplerClientand"Kings"forHitachiClient.- Return type:
str