Skip to content

Read through the NetworkX tutorial and create a python script #5

Open
@MridulS

Description

[Everyone can do this task. There is no need to claim/assign this issue]

Please follow our introductory tutorial once you have installed networkx on your machine. This will give applicants a better overview of our codebase and API, which will help the applicant create a strong application.

Once you have gone through the tutorial create a python script (nx_tutorial_script.py) that perform the following operations

  • Create a NetworkX DiGraph graph object
  • Add nodes of multiple types to this graph object, at least one node of each type int, str, tuple. (Maximum 10 nodes)
  • Add multiple edges between these nodes
  • Find the shortest path between all pairs of nodes in this graph and print them.
  • Plot the graph using networkx.draw

Add this file to your folder created in the first task and push the changes to github.

Create a pull request against this repository and add the file 2023-round-2/<your-github-username>/nx_tutorial_script.py with the python script which performs all the operations above.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions