Graph-Based Design of Hierarchical Reinforcement Learning Agents