An error "Assumed incident matrix must contained negative value for link out." which occurs in creating a graph object.

1 view (last 30 days)
> graph([1 1 1],[2 3 4])
Error using graph
Assumed incident matrix must contained negative value for link out.

Accepted Answer

Walter Roberson
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)

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!