Algorithms for Graph and Network Analysis: Clustering and Search of Motifs in Graphs