An error "Assumed incident matrix must contained negative value for link out." which occurs in creating a graph object.
1 view (last 30 days)
Show older comments
Ernst Hankel
on 20 May 2022
Commented: Ernst Hankel
on 24 May 2022
> graph([1 1 1],[2 3 4])
Error using graph
Assumed incident matrix must contained negative value for link out.
2 Comments
Accepted Answer
Walter Roberson
on 20 May 2022
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.
More Answers (0)
See Also
Categories
Find more on Graph and Network Algorithms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!