A Graph-based Method for Session-based Recommendations