code to analyze graph oscillators