4.13. Self Check¶

A Graphical represention of a Friend Network¶
- This is incorrect due to the graph not being directed.
- This is incorrect due to the graph not being directed.
- This is incorrect due to the graph not being directed.
- Correct, because the Graph is undirected.
Q-1: Based on the graph above what social media platform would the user be using?
-
Q-2: Match the correct NetworkX code piece to the correct description.
- G
- This variable is a DiGraph object that contains no nodes and no edges.
- add_node
- This method adds nodes.
- nodes
- This method gets a list of nodes.
- Nodeview
- This class can be used in a for loop or it can make a list.
- Edges
- This method gets a list of edges.
- Draw_circular
- This method arranges the nodes in a circle and connects them with edges.
Before you keep reading...
Making great stuff takes time and $$. If you appreciate the book you are reading now and want to keep quality materials free for other students please consider a donation to Runestone Academy. We ask that you consider a $10 donation, but if you can give more thats great, if $10 is too much for your budget we would be happy with whatever you can afford as a show of support.
Please construct def complete_graph:
You have attempted 1 of 5 activities on this page