class_docstr: concat pagerank features
class_docstr_tok: ["concat","pagerank","features"]
code: def _transform(self, data):
      graph = nx.DiGraph()
      w = data.edge_weight
      eg = [(u, v, w[i]) for i, (u, v) in enumerate(data.edge_index.T)]
      graph.add_weighted_edges_from(eg)
      pagerank = nx.pagerank(graph)
      pr = np.zeros((data.x.shape[0], 1))
      for i, v in pagerank.items():
          pr[i] = v
      data.x = np.concatenate([data.x, pr], axis=1)
      return data
  
file_path: AutoGL/autogl/module/_feature/generators/page_rank.py
imports: from scipy.sparse import csr_matrix
  import scipy.sparse
  import networkx
  import numpy
  from .base import BaseGenerator
  from ..None import register_feature
label_desc: Use image node_id 1 for calling the GePageRank obj's underlying member method code with example usage: obj._transform(data) and returns: data