Use of techniques derived from graph theory to compare secondary structure motifs in proteins