The destroy() function inside of the Group class only removes the reference to the group in the Network class (accessed via this.network.nodeGroups and this.network.linkGroups). If a group is attached to a Phase object, it will not be properly destroyed. We should also check the group's associated phase's this.nodeGroups and this.linkGroups attributes.
The
destroy()
function inside of theGroup
class only removes the reference to the group in theNetwork
class (accessed viathis.network.nodeGroups
andthis.network.linkGroups
). If a group is attached to aPhase
object, it will not be properly destroyed. We should also check the group's associated phase'sthis.nodeGroups
andthis.linkGroups
attributes.