VertexCover¶
- class VertexCover(graph)[ソース]¶
ベースクラス:
GraphOptimizationApplication
Optimization application for the 「vertex cover」 [1] problem based on a NetworkX graph.
参照
[1]: 「Vertex cover」, https://en.wikipedia.org/wiki/Vertex_cover
- パラメータ:
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
Convert a vertex cover instance into a
QuadraticProgram