The goal of igraph.style is to make it easy to style igraph literals, on top of following the tidyverse style.
You can install the development version of igraph.style from GitHub with:
# install.packages("pak")
pak::pak("igraph/igraph.style")
Compare:
styler::style_text("A+-+B")
#> A + -+B
styler::style_text("A+-+B", style = igraph.style::igraph_style)
#> A +-+ B