在 Matlab 中,如何删除有向图中没有边的节点?
In Matlab, how can I remove nodes with no edges in a directed graph?
我输入这个:
plot(digraph([1 2 3 10],[2 3 1 1]))
而图中显示
如何删除节点 8、9、4、5、6 和 7?是否有设置不显示任何没有边的节点?[=12=]
我输入这个:
plot(digraph([1 2 3 10],[2 3 1 1]))
而图中显示
如何删除节点 8、9、4、5、6 和 7?是否有设置不显示任何没有边的节点?[=12=]