# Graph theory notation

I am writing a TeX document with some graph theory notation and there is some notation I couldn't get:

I checked in Word and it's Cambria Math font, but when I used the {unicode-math} package it delivers an error that it has to work with the XeLaTeX engine instead of pdf. When I change the engine to be XeLaTeX the document doesn't compile anymore.

Another notation is the dependency notation:

which I couldn't produce normally. I tried this:

    \newcommand{\indep}{\rotatebox[origin=c]{90}{$\models$}}
\newcommand{\nindep}{\rotatebox[origin=c]{90}{$\not\models$}}


and it didn't turn out so good.

How can i get these symbols to look right?

• The first is just \mathcal{G} – no extra packages necessary. – Sean Allred Jan 19 '16 at 14:26
• – Martin Thoma Jan 21 '16 at 10:20

If you don't need it presented in \scriptstyle, etc, then this might suffice.

\documentclass{article}
\usepackage{graphicx}
\def\depend{\mathbin{%
\ooalign{$\perp$\cr$\,\perp$\cr\scalebox{1.3}[.5]{\raisebox{5pt}{$\mkern2mu/$}}}}}
\begin{document}
$\mathcal{G}\depend X$
\end{document}


If one does need it in different math styles, then maybe this:

\documentclass{article}
\usepackage{graphicx,scalerel}
\def\depend{\mathbin{\ThisStyle{%
\ooalign{$\SavedStyle\perp$\cr$\SavedStyle\,\perp$\cr\scalebox{1.3}[.5]{%
\kern-1pt\raisebox{5\LMpt}{$\SavedStyle\mkern4mu/$}}}}}}
\begin{document}
$\mathcal{G}\depend X$\par
$\scriptstyle\mathcal{G}\depend X$\par
$\scriptscriptstyle\mathcal{G}\depend X$
\end{document}


symbols-a4 gives a possible definition for \independent on p. 212 (§10.3):

\newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}}
\def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}