Context
I personally am a fan of the Wolfram Language, especially for its symbolic notation. The Wolfram Language uses the following symbols for arcs and edges respectively:
Suppose I wish to type some Mathematica pseudo-code and use these conventions rather than their "full form" (\[DirectedEdge] and \[UndirectedEdge]).
Then I can, somewhat, recreate these icons using tikz:
\newcommand{\ue}[1]{%
\begin{tikzpicture}[#1]%
\draw[fill = black] (.25ex,.25ex) circle (.3ex);
\draw[thick] (.55ex,.25ex) -- (1.55ex,.25ex);%
\draw[fill = black] (1.85ex, .25ex) circle (.3ex);%
\end{tikzpicture}%
}
\newcommand{\de}[1]{%
\begin{tikzpicture}[#1]%
\draw[fill = black] (.25ex,.25ex) circle (.3ex);
\draw[thick, ->] (.55ex,.25ex) -- (1.85ex,.25ex);%
\end{tikzpicture}%
}
Where ue and de stand for undirected / directed edge respectively. While I would prefer to use edge and arc, arc is already taken in the namespace.
To be fair, using these symbols doesn't look like the worst thing ever seen when typeset:
\noindent\textbf{Adjacency}: if there exists an edge $e \in \mathbf{E}$, for $v_i, v_j \in \mathbf{V}$ such that $e$ is defined by $v_i$~\ue{}~$v_j$ (equivocally $v_j$ \ue{} $v_i$), then $v_i$ \& $v_j$ are said to be adjacent.
Personally, I am in favor of these symbols rather than the explicit stating of an (un)ordered set of two vertices, and walks look ok-ish as well:
Question
While these tikz drawings work in the given cases, I have noticed that in caption environments the symbols is no longer centered with the text. Further, spacing can be an issue.
How can the following be achieved?
automatic binding (the preceding and succeeding character elements must be in the same line).
automatic centering to the preceding / succeeding character.
the ability to work in the math environment.
easy scaling.
Also, you opinion about using these glyphs in general would be appreciated. Be honest, how ugly are they?




fdsymbolSpoons, package. There is the command\leftrightblackspoonor you can see at the link: http://tex.stackexchange.com/questions/74689/looking-for-a-symbol-arrow-with-dot. – Sebastiano Feb 06 '17 at 09:56