Since what I want is a different topology. I wonder if there is a way to modify, for example, the ring topology or fully connected through "add_edge" or "add_vertex" on the topology. I would be very grateful if you could send me a minimal example of adding or removing islands from the topology with these methods, as I have not been able to do it.:
t1 = pg.topology(pg.ring(5))
t1.add_vertex()
Output:
AttributeError: 'pygmo.core.topology' object has no attribute 'add_vertex'
Since what I want is a different topology. I wonder if there is a way to modify, for example, the ring topology or fully connected through "add_edge" or "add_vertex" on the topology. I would be very grateful if you could send me a minimal example of adding or removing islands from the topology with these methods, as I have not been able to do it.:
t1 = pg.topology(pg.ring(5)) t1.add_vertex() Output: AttributeError: 'pygmo.core.topology' object has no attribute 'add_vertex'