Question: 1. Given a graph (in either an adjacency matrix or adjacency list format), write a function that can calculate the average degree of the network.
1. Given a graph (in either an adjacency matrix or adjacency list format), write a function that can calculate the average degree of the network.
2. Write a function that calculates the degree distribution of a network given as input.
3. Implement an algorithm of your choice to find the shortest path between two nodes in a network.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
