Characteristics and regularities of graphs and words