Skip to content

Instantly share code, notes, and snippets.

@YHaruoka
Created June 21, 2022 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YHaruoka/dc27f0a38f91f1535fd5924fac15be3e to your computer and use it in GitHub Desktop.
Save YHaruoka/dc27f0a38f91f1535fd5924fac15be3e to your computer and use it in GitHub Desktop.
import numpy as np
from pygsp import graphs, filters
G = graphs.Logo()
G.estimate_lmax()
g = filters.Heat(G, tau=100)
DELTAS = [20, 30, 1090]
s = np.zeros(G.N)
s[DELTAS] = 1
s = g.filter(s)
G.plot_signal(s, highlight=DELTAS, backend='matplotlib')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment