You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a program in C++ to create adjacency matrix of a given graph. If a graph has n vertices, we use n x n matrix to represent the graph.Let's assume the n x n matrix as adj[n][n].
if there is an edge from vertex i to j, mark adj[i][j] as 1. i.e. adj[i][j] == 1
if there is no edge from vertex i to j, mark adj[i][j] as 0. i.e. adj[i][j] == 0
Input:
The neighbours of each node with which it is connected.
Output:
The corresponding adjacency matrix.
Record
I agree to follow this project's Code of Conduct
I want to work on this issue
I'm willing to provide further clarification or assistance if needed.
Full Name
Shuvojit Samanta
Participant Role
GSSOC
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Feature Description
Name:
Write a program in C++ to create adjacency matrix of a given graph. If a graph has n vertices, we use n x n matrix to represent the graph.Let's assume the n x n matrix as adj[n][n].
Input:
The neighbours of each node with which it is connected.
Output:
The corresponding adjacency matrix.
Record
Full Name
Shuvojit Samanta
Participant Role
GSSOC
The text was updated successfully, but these errors were encountered: