Graph representation - graph2rep (Undirected graphs)

Graph to adjacency list and adjacency matrix (Undirected graphs)


Updated 13 Oct 2022

View License

Graph to adjacency list and adjacency matrix (Undirected graphs):
To externally get the adjacent vertex call the adjacency list per row
Example: nonzeros(adjacency_list(i,:))
Any observations or/and suggestions for improvement of this code send to David Matajira at this email address:
Your contribution to improving this code will be acknowledged in revision section in this script and in the MatLab web page of the File Exchange - MATLAB Central - MathWorks
Principal Investigator: Dr. Joel Antonio Trejo Sanchez

Cite As

David Matajira (2023). Graph representation - graph2rep (Undirected graphs) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Bugs removed!