Degree of undirected graph networkx. If data=None (default) an empty graph is created.