The dissimilarity characteristic of linear graphs