I'm trying to draw some graphs (as in edges and vertices) for an article. I would like to add a bar to all edges and label them as half-edges.
\usepackage{tikz}
\begin{tikzpicture}[
every node/.style={circle, draw, fill=black!50,
inner sep=0pt, minimum width=4pt}, thick
]
\node(A) at (0,0){};
\node(B) at (0.5,1){};
\node(C) at (1,0){};
\node(D) at (2,0){};
\draw[-](A)--(B);
\draw[-](A)--(C);
\draw[-](B)--(C);
\draw[-](C)--(D);
\draw (D) to [out=-45,in=45,looseness=40] (D);
\end{tikzpicture}
This gives me this graph:
Here's the result I would like:
How can I do something like that ? I am using MikTex.
Thank you :)