Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphminspantree function depreciated since R2022b #1

Open
juldub07 opened this issue Jan 3, 2025 · 0 comments
Open

graphminspantree function depreciated since R2022b #1

juldub07 opened this issue Jan 3, 2025 · 0 comments

Comments

@juldub07
Copy link

juldub07 commented Jan 3, 2025

graphminspantree used in minimalBridge line 235 throws an error because it has been replaced by minspantree

Suggestion:

    %     min_span_tree = graphminspantree(sparse(squareform(mindist)));
        min_span_tree = minspantree(graph(sparse(squareform(mindist))));

        % Map square indices to pair number
        ind2p = squareform(1:np);
        % Select the bridges that provide the minimal connectivity
        %     pair_bridge = pair_bridge(ind2p(min_span_tree > 0));
        pair_bridge = pair_bridge(ind2p(adjacency(min_span_tree) > 0));
    %         pair_bridge = pair_bridge(ind2p(find(min_span_tree)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant