Mathematical aspects of vacuum energy on quantum graphs