Algorithm for Naming Molecular Equivalence Classes Represented by Labeled Pseudographs.