in src/qbsolv_community.py [0:0]
def __init__(self, graph_name, graph, num_comm, solver_limit=100, num_repeats=1, num_reads=1000,
seed=1, alpha=10, mode='classical', s3_folder='N/A', device_arn = 'N/A'):
"""
Input for graph and QBSolv hyperparameter values
:param graph_name: str, the name of a graph for result saving
:param graph: a networkX graph
:param num_comm: int, number of communities to solve for
:param solver_limit: int, the maximum number of variables (n) for sub-QUBOs
:param num_repeats: int, the maximum iterations to repeat QBSolv solver execution to discover a new best solution
:param num_reads: int, the number of times the annealing to be performed
:param seed: int, random seed value
:param alpha: int, the penalty coefficient to enforce assigning only one community to each node
:param mode, str, must be either 'classical' or 'hybrid'. Determines whether the classical or hybrid solver is called
:param s3_folder, str, Amazon Braket S3 folder path (only needed for QBSolv Hybrid solver)
:param device_arn: str, D-Wave QPU Device ARN (only needed for QBSolv Hybrid solver)
"""
self.graph_name = graph_name
self.graph = graph
self.num_comm = num_comm
self.solver_limit = solver_limit
self.num_repeats = num_repeats
self.num_reads = num_reads
self.seed = seed
self.alpha = alpha
self.mode = mode
self.s3_folder = s3_folder
self.device_arn = device_arn