new methog called g --- nx.expected_degree_graph