How to generate all possible connection with graph theory function
2 次查看(过去 30 天)
显示 更早的评论
A=[0 1 1 1;0 0 1 1;0 1 0 1;0 1 1 0];
G=digraph(A);
plot(G)
I want to store/generate all possible connection like 1-2-3-4,1-3-2-4,1-4-2-3, ![plot1.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/268182/plot1.jpeg)
![plot1.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/268182/plot1.jpeg)
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!