npycomp.problems.Clique.

from_dimacs#

classmethod Clique.from_dimacs(path: str, k: int)#

Load a Clique instance from a DIMACS file.

Parameters:
pathstr

Path to a DIMACS-format file describing a graph.

kint

The size of the clique.

Returns:
Clique

An instance of the Clique class with an adjacency matrix built from the file.