Compound Graph Algorithm State Machine Robot