added python wrapper for adj. list graph