class_docstr: Generates random internet AS graphs.
class_docstr_tok: ["Generates","random","internet","AS","graphs","."]
docstr: Pick a node with a probability weighted by its peer degree.
  
  Pick a node from node_list with preferential attachment
  computed only on their peer degree
docstr_tok: ["Pick","a","node","with","a","probability","weighted","by","its","peer","degree",".","Pick","a","node","from","node_list","with","preferential","attachment","computed","only","on","their","peer","degree"]
code: def choose_peer_pref_attach(self, node_list):
      """Pick a node with a probability weighted by its peer degree.
  
      Pick a node from node_list with preferential attachment
      computed only on their peer degree
      """
  
      d = {}
      for n in node_list:
          d[n] = self.G.nodes[n]["peers"]
      return choose_pref_attach(d, self.seed)
  
file_path: networkx/networkx/generators/internet_as_graphs.py
imports: import networkx
  from networkx.utils import py_random_state
label_desc: Use image node_id 4 for calling the AS_graph_generator obj's underlying member method code with example usage: obj.choose_peer_pref_attach(node_list) and returns: choose_pref_attach