Motion Graph for Character Animation