1: \begin{abstract}
2: A finitely presented Bestvina--Brady group (BBG) admits a presentation involving only commutators.
3: We show that if a graph admits a certain type of spanning trees, then the associated BBG is a right-angled Artin group (RAAG).
4: As an application, we obtain that the class of BBGs contains the class of RAAGs.
5: On the other hand, we provide a criterion to certify that certain finitely presented BBGs are not isomorphic to RAAGs (or more general Artin groups).
6: This is based on a description of the Bieri--Neumann--Strebel invariants of finitely presented BBGs in terms of separating subgraphs, analogous to the case of RAAGs.
7: As an application, we characterize when the BBG associated to a 2-dimensional flag complex is a RAAG in terms of certain subgraphs.
8: \end{abstract}
9: