This strongly reminds me of Cathode (http://www.secretgeometry.com/apps/cathode/).