code: def get_gene_names(self):
          
          # Collect all gene names in network
          gene_names = []
          for node in self._nodes:
              members = node['data'].get('members')
              if members:
                  gene_names += list(members.keys())
              else:
                  if node['data']['name'].startswith('Group'):
                      continue
                  gene_names.append(node['data']['name'])
          self._gene_names = gene_names
docs: Gather gene names of all nodes and node members