refactoring edgeTypeSelector is now relationInput