Genericize trienode