The degree measure as utility function over positions in graphs and digraphs