trim_graph () {
  # graphs start with * or |
  # followed by a space or / or \
  perl -pe 's@^((\*|\|)( |/|\\))+@@'
}
