import tkinter as tk

from BribeNet.gui.classes.param_list_frame import ParamListFrame


class BarabasiAlbert(ParamListFrame):
    name = "Barabási-Albert"

    def __init__(self, parent):
        super().__init__(parent)

        self.params = {
            'k': tk.DoubleVar(self, value=5),
            'n_max': tk.IntVar(self, value=30),
            'n_0': tk.IntVar(self, value=0)
        }

        self.descriptions = {
            'k': 'number of attachments per node',
            'n_max': 'number of nodes in the graph',
            'n_0': 'number of connected nodes to begin with'
        }

        self.grid_params(show_name=False)
