Graph-Structured Visual Imitation