I want to make this graph. I found a few different things in the PGF manual that were kind of similar but I couldn't find a way to draw:
- The central hub/node (vertex)
- The straight twin edges (i.e. the double lines/arrows)
Here's me experimenting with a few things according to the manual, but they're not even close:
\documentclass[10pt]{article}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{graphs}
\usetikzlibrary{graphs.standard}
\begin{document}%%
\tikz \graph [clockwise=6] { a, b, c, d, e, f [<->]};
\tikz \graph [clockwise=6,clique]{ a, b, c, d, e, f [<->]};
\tikz \graph [clockwise] { subgraph I_n [n=6,<->] };
\tikz \graph [clockwise,clique] { subgraph I_n [n=6,<->] };
\tikz \graph [clockwise] { subgraph K_n [n=6,<->] }; \\
\tikz \graph [clockwise,clique] { subgraph K_n [n=6,<->] };
\tikz \graph [clockwise] { subgraph C_n [n=6,<->] };
\tikz \graph [clockwise,clique] { subgraph C_n [n=6,<->] };
\tikz \graph [clockwise] { subgraph P_n [n=6,<->] };
\tikz \graph [clockwise=6,multi] {{ a, b, c, d, e, f };
a <->[bend left] b;
a <->[bend right] b;
b <->[bend left] c;
b <->[bend right] c;
c <->[bend left] d;
c <->[bend right] d;
d <->[bend left] e;
d <->[bend right] e;
e <->[bend left] f;
e <->[bend right] f;
f <->[bend left] a;
f <->[bend right] a;
};
%\tikz \graph [spring electrical layout, horizontal=0 to 1] { 0 [electric charge=1] -- subgraph C_n [n=6] };
% ^^^ couldn't get this one to work at all for some reason
\end{document}%%





This account is scheduled to be deleted yesterday.Should be gone any minute now. – Aug 05 '19 at 15:46