Unsupervised learning with graph theoretical algorithms and its applications to transcriptomic data analysis