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¶
- 戻り値の型:
str
- __str__(self) str¶
- 戻り値の型:
str
- property adjacency¶
List of neighbor nodes for each node.
- 戻り値の型:
list[list[int]]
- property edges¶
List of graph edges as node ID pairs.
- 戻り値の型:
list[tuple[int, int]]
- property nodes¶
List of node IDs in the graph.
- 戻り値の型:
list[int]
- property shape¶
Graph size parameters.
- 戻り値の型:
list[int]
- property type¶
Graph type name, e.g.
"Chimera","Pegasus"forDWaveSamplerClientand"Kings"forHitachiClient.- 戻り値の型:
str