original_docstring: Plot scatterplot between degree and betweenness centrality.
docstring: Plot scatterplot between degree and betweenness centrality.
docstring_tokens: Plot scatterplot between degree and betweenness centrality .
code: def plot_degree_betweenness(G):
      """Plot scatterplot between degree and betweenness centrality."""
      bc = pd.Series(nx.betweenness_centrality(G))
      dc = pd.Series(nx.degree_centrality(G))
  
      df = pd.DataFrame(dict(bc=bc, dc=dc))
      ax = df.plot(x="dc", y="bc", kind="scatter")
      ax.set_ylabel("Betweenness\nCentrality")
      ax.set_xlabel("Degree Centrality")
      sns.despine()
code_tokens: def plot_degree_betweenness ( G ) : bc = pd . Series ( nx . betweenness_centrality ( G ) ) dc = pd . Series ( nx . degree_centrality ( G ) ) df = pd . DataFrame ( dict ( bc = bc , dc = dc ) ) ax = df . plot ( x = "dc" , y = "bc" , kind = "scatter" ) ax . set_ylabel ( "Betweenness\nCentrality" ) ax . set_xlabel ( "Degree Centrality" ) sns . despine ( )
short_docstring: Plot scatterplot between degree and betweenness centrality.
short_docstring_tokens: Plot scatterplot between degree and betweenness centrality .
comment: """Plot scatterplot between degree and betweenness centrality."""