A poor first attempt at a graph filtering implementation