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__

Return type:

str

__str__(self) str

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

Return type:

str