Changed the default graph generator to create self loops only at special nodes. Fixed LearningAgent behavior bug.