def get_atom_features(self, node_id): attrs = nx.get_node_attributes(self.graph, "atom_features") return attrs[node_id]