I would like to avoid overlap of nodes and labels in my graph. Currently I am generating the graph as follows:
import networkx as nx B = nx.from_pandas_edgelist(