4.13. Self Check¶
- 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.
Please construct def complete_graph:
You have attempted of activities on this page