Assignment # 12 using Python with netwokxx and plotnine

For this assignment, we are using Python to create a simple un-directed social network graph.

The graph came out as intended, with 10 nodes labeled A through J and lines showing the connections between them. I was able to successfully create a random undirected network, organize the data into DataFrames, and visualize the relationships between the nodes. Once everything was working, the final result was pretty straightforward.

I ran into a few issues with importing libraries and getting the code to run properly. I also haven’t used Python in a long time, so it took me a little while to get back into it. Remembering the differences between the IDLE Shell, the editor, and Command Prompt was also a bit confusing at first. I had some trouble getting the graph to display visually, but eventually figured it out.

I would use this method again if needed, but I personally prefer RStudio for data visualization. I’m much more familiar and experienced with R, and I find it simpler to work with. I also like that I can do pretty much everything within one console in RStudio, whereas Python IDLE required switching between different windows and figuring out where to enter different commands. It was a good opportunity to refresh my Python skills though.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *