Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Python Script for NetworkX Operations #213

Merged
merged 1 commit into from
Oct 5, 2023
Merged

Conversation

axif0
Copy link
Contributor

@axif0 axif0 commented Oct 5, 2023

This PR addresses the task - Issue #5.

The added Python script performs the following operations using NetworkX:

  • Creates a NetworkX DiGraph graph object.
  • Adds nodes of multiple types (str, int, tuple) to the graph object.
  • Adds multiple edges between these nodes.
  • Finds and prints the shortest path between all pairs of nodes in the graph.
  • Plots the graph using networkx.draw.

Please find the script in the following Colab notebook: NetworkX Operations Colab Notebook

@MridulS
Copy link
Member

MridulS commented Oct 5, 2023

Thanks!

@MridulS MridulS merged commit 36d79e7 into networkx:main Oct 5, 2023
@axif0 axif0 deleted the script branch October 13, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants