How to convert a graph to adjacency matrix?
Show older comments
Hi. I've created a graph G in MATLAB. But when I type A = adjacency(G), I get this error:
Unable to use a value of type 'graph' as an index.
1 Comment
Ameer Hamza
on 2 May 2020
Can you share an example code that can recreate this error?
Accepted Answer
More Answers (0)
Categories
Find more on Graph and Network Algorithms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!