Skip to content

Graph multiresolution: largest_eigenvector #3

@mys007

Description

@mys007

I think the behavior on L141 in gsp_graph_multiresolution.m is wrong in the case when largest_eigenvector(1)==0, which now leads to filling largest_eigenvector with 0s as sign(0)=0. I suggest L141 being executed only if largest_eigenvector(1)~=0.
Also, as eig works up to eps precision, one should IMHO have nonnegative_logicals=(largest_eigenvector >= -eps); instead of nonnegative_logicals=(largest_eigenvector >= 0);, as the current may lead to problems with graphs with multiple connected components, which are then numerically not properly identified to be kept, which may lead to NaNs in Kron reduction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions