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 degree.
  
  Pick a node from node_list with preferential attachment
  computed on their degree
docstr_tok: ["Pick","a","node","with","a","probability","weighted","by","its","degree",".","Pick","a","node","from","node_list","with","preferential","attachment","computed","on","their","degree"]
code: def choose_node_pref_attach(self, node_list):
      """Pick a node with a probability weighted by its degree.
  
      Pick a node from node_list with preferential attachment
      computed on their degree
      """
  
      degs = dict(self.G.degree(node_list))
      return choose_pref_attach(degs, 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 5 for calling the AS_graph_generator obj's underlying member method code with example usage: obj.choose_node_pref_attach(node_list) and returns: choose_pref_attach