the code, initial commit. working code, tested with some datasets at http://vlado.fmf.uni-lj.si/pub/networks/data/bio/foodweb/foodweb.htm