from networkx.generators import community from networkx.generators import random_graphs from networkx.algorithms import clique import networkx as nx import random,numpy as np,os import copy import matplotlib.pyplot as plt G = random_graphs.fast_gnp_random_graph(10, 0.04) # Generation de graphes aleatoires avec 0.1% de liens #nx.draw(G,with_labels=True) #plt.show() G.add_node(70) #nx.draw(G,with_labels=True) #plt.show() print(G.number_of_nodes()) print(666 % 100)