English
Languages
English
Shortcuts



GraphOptimizationApplication

class GraphOptimizationApplication(graph)[source]

Bases: qiskit_optimization.applications.optimization_application.OptimizationApplication

An abstract class for graph optimization applications.

Parameters
  • graph (Union[Graph, ndarray, List]) – A graph representing a problem. It can be specified directly as a

  • Graph (NetworkX) –

  • as an array or list if format suitable to build out a NetworkX graph. (or) –

Attributes

graph

Getter of the graph

Methods

draw([result, pos])

Draw a graph with the result.

random_graph(num_nodes, num_edges[, seed])

type num_nodes

int