言語
English
Bengali
Japanese
Spanish



StableSet

class StableSet(graph)[ソース]

ベースクラス: GraphOptimizationApplication

Optimization application for the 「stable set」 [1] problem based on a NetworkX graph.

参照

[1]: 「Independent set (graph theory)」, https://en.wikipedia.org/wiki/Independent_set_(graph_theory)

パラメータ:

graph (Union[Graph, ndarray, List]) – A graph representing a problem. It can be specified directly as a NetworkX graph, or as an array or list format suitable to build out a NetworkX graph.

Attributes

Methods

interpret(result)

Interpret a result as a list of node indices

to_quadratic_program()

Convert a stable set instance into a QuadraticProgram