Skip to content
/ graphs Public

The program prompts the user to input the number of nodes and edges, followed by the edges in the format of endpoints (u, v). It constructs the adjacency matrix and performs BFS traversal to visit all nodes. Finally, it displays the adjacency matrix and the BFS visit sequence of the graph.

Notifications You must be signed in to change notification settings

tejb96/graphs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Lab9

About

The program prompts the user to input the number of nodes and edges, followed by the edges in the format of endpoints (u, v). It constructs the adjacency matrix and performs BFS traversal to visit all nodes. Finally, it displays the adjacency matrix and the BFS visit sequence of the graph.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages