GA gives graph the database

This commit is contained in:
SimpleArt
2020-11-07 13:32:34 -05:00
parent f1f9d70c26
commit c959f44fd5
3 changed files with 18 additions and 20 deletions

View File

@ -63,7 +63,7 @@ class Attributes:
mutation_individual_impl = Mutation_Methods.Individual.single_gene,
mutation_population_impl = Mutation_Methods.Population.random_selection,
termination_impl = Termination_Methods.fitness_and_generation_based,
database = None,
Database = database.Database,
database_name = 'database.db',
sql_create_data_structure = """CREATE TABLE IF NOT EXISTS data (
id integer PRIMARY KEY,
@ -117,12 +117,12 @@ class Attributes:
self.termination_impl = deepcopy(termination_impl)
# Database varibles
self.database = deepcopy(database)
self.database = Database()
self.database_name = deepcopy(database_name)
self.sql_create_data_structure = deepcopy(sql_create_data_structure)
# Graphing variables
self.graph = Graph(self)
self.graph = Graph(self.database)
# Getter and setters for all required varibles