added inverse parameter for traverse queries