July 2018
Beginner
202 pages
5h 4m
English
Scenario
Creating an adjacency matrix for a weighted undirected graph to be used for social networking website.
Aim
To write a code in Java for implementing the adjacency matrix representation of a weighted undirected graph.
Prerequisites
For this activity, you have to implement methods addEdge() and edgeWeight() of class AdjacencyMatrixWeightedUndirected available at the following URL:
The methods should add an edge and return the edge weight between ...
Read now
Unlock full access