class_docstr: Single-step selection.
docstr: Rank nodes.
  
  :param edge_index: shape: (m, 2)
      the edge_index, i.e., adjacency list.
  
  :return: (n,)
      the node IDs sorted decreasingly by anchor selection preference.
code: def rank(self, edge_index: numpy.ndarray) -> numpy.ndarray:
      """
      Rank nodes.
  
      :param edge_index: shape: (m, 2)
          the edge_index, i.e., adjacency list.
  
      :return: (n,)
          the node IDs sorted decreasingly by anchor selection preference.
      """
      raise NotImplementedError
  
imports: import logging
  from abc import ABC, abstractmethod
  from typing import Iterable, Optional, Sequence, Union
  import numpy
  import torch
  from class_resolver import ClassResolver, HintOrType, OptionalKwargs
  from torch_ppr import page_rank
  from ...triples.splitting import get_absolute_split_sizes, normalize_ratios
  from ...typing import OneOrSequence
  from ...utils import ExtraReprMixin
label_desc: Use image node_id 2 for calling the SingleSelection obj's underlying member method code with example usage: obj.rank(edge_index) without return types