Graph

class Graph

Physical graph information used by graph-embedding solvers.

Methods

Attributes

adjacency

List of neighbor nodes for each node.

edges

List of graph edges as node ID pairs.

nodes

List of node IDs in the graph.

shape

Graph size parameters.

type

Graph type name, e.g. "Chimera", "Pegasus" for DWaveSamplerClient and "Kings" for HitachiClient.

__init__(*args, **kwargs)
__repr__(self) str

__repr__

戻り値の型:

str

__str__(self) str

__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" for DWaveSamplerClient and "Kings" for HitachiClient.

戻り値の型:

str