GSC: A Graph-based skill composition framework for robot learning