Skip to content

Graph multiresolution: eps computation #2

@mys007

Description

@mys007

The current code throws "GSP_GRAPH_SPARSIFY: Epsilon out of required range" if gsp_graph_multiresolution() comes to the point that the current graph has three nodes. I think L175 in gsp_graph_multiresolution.m should be if Gs{lev+1}.N>3 as 2/sqrt(3)>1, a condition in gsp_graph_sparsify(). Another useful condition would be sum(find(Gs{lev+1}.A,1))>0 as otherwise there is nothing to sparsify and this later leads to error in results=gendist(Pe',q,1);.
In addition a piggy-backed comment: gsp_graph_sparsify() should be documented that it is non-deterministic.

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