a method for fingerprint recognition comprises converting fingerprint specimens into electronic images ; converting the electronic images into mathematical graphs that include a vertex and an edge ; detecting similarities between a plurality of graphs ; aligning vertices and edges of similar graphs ; and comparing similar graphs .