An error "Assumed incident matrix must contained negative value for link out." which occurs in creating a graph object.
1 次查看(过去 30 天)
显示 更早的评论
> graph([1 1 1],[2 3 4])
Error using graph
Assumed incident matrix must contained negative value for link out.
2 个评论
采纳的回答
Walter Roberson
2022-5-20
You are using https://www.mathworks.com/matlabcentral/fileexchange/12648-graph-package
That code does not support passing in source and target vectors.
You are looking at the documentation for the built-in graph() function
Unless there is special reason, you should just remove the File Exchange contribution from your MATLAB path.
更多回答(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!