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.

采纳的回答

Walter Roberson
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 CenterFile Exchange 中查找有关 Graph and Network Algorithms 的更多信息

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by