Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Implement the adjacency matrix #387

Open
4 tasks done
shuvojitss opened this issue Nov 8, 2024 · 1 comment
Open
4 tasks done

[Feature Request]: Implement the adjacency matrix #387

shuvojitss opened this issue Nov 8, 2024 · 1 comment

Comments

@shuvojitss
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

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].

  • 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

Copy link
Contributor

github-actions bot commented Nov 8, 2024

🙌 Thank you for bringing this issue to our attention! We appreciate your input and will investigate it as soon as possible.

Feel free to join our community on Discord to discuss more!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant