Fast analytical methods for finding significant labeled graph motifs