Filtered Graph Clustering Bug

Fixed a bug that occurs when the user executes the algorithm on a
filtered graph