How to draw a graph with 18 levels
1 次查看(过去 30 天)
显示 更早的评论
Hello
I want to show the (valid) states of the river problem in the form of a graph in MATLAB and then apply search DFS on it, but the problem I have is how to draw a graph of this problem. First, I want to graph this problem using a cell, but The problem in the cell is that it is not possible to identify the child of a node. Do you have a special suggestion for this problem ??
It is assumed that the initial state is that everyone is on the left (start) side of the figure
[1 1 1 1 1 11 11] and the right (destination) in the form of [0000000000]
For example, children will be the first case
[11000000] and [00000011] and .......
Please help
0 个评论
回答(0 个)
另请参阅
类别
在 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!