Data Science, Machine Learning, AI, Mathematics, Python.
("Basit", "Raza"), ("Moon", "Danish"), ('Raza', 'Danish'), ('Danish', 'Basit'), ('Basit', 'Hamed')] # Add edges one by one to the graph for edge in edges: G.add_edge(*edge) # Draw the graph pos = nx.spring_layout(G) nx.draw(G, pos, with_labels=True, node_color='lightblue', font_weight='bold',