plt.axis('scaled')
return color
global colors, hatches
colors = it.cycle('bgrcmyk')
hatches = it.cycle('/\\|-+*')
G = nx.gnp_random_graph(n=7, p=0.6)
coords = nx.spring_layout(G)
cliques = [clique for clique in nx.find_cliques(G) if len(clique) > 2]
nx.draw(G, pos=coords)
for clique in cliques:
    print('Clique to appear: ', clique)
nx.draw_networkx_nodes(G, pos=coords, nodelist=clique, node_color=
    draw_circle_around_clique(clique, coords))
plt.show()
Graphviz - Drawing maximal cliques