# How to scale a tikz graph

I would like to enlarge a diagram made with the \graph command, because the arrows at the current scale look too short to me. The options I have tried, however, seem to have no effect. I have tried scale, sibling distance, node distance, node sep, level distance, and possibly others. I am compiling with LuaTeX. I have a feeling I am missing something simple. I would just like to magnify it, similar to what the scale option would do to other tikz pictures.

\documentclass[12pt]{amsart}

\usepackage{tikz}

\usetikzlibrary{arrows,trees,graphs}

\usetikzlibrary{graphdrawing}
\usegdlibrary{trees,force}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\begin{document}

$\begin{tikzpicture} \graph[clockwise=7,math nodes, edges = {double equal sign distance, -implies}] { "p_1", "p_2", "p_3", "p_4", "p_5", "p_6", "p_7"; "p_1" -> "p_2" -> "p_3" -> "p_4" -> "p_5" -> "p_6" -> "p_7" -> "p_1" }; \end{tikzpicture}$

\end{document}


This is the current output:

Thank you!

• \begin{tikzpciture}[scale=<factor>]... ? – cfr Mar 29 '16 at 0:10
• Don't put tikzpicture inside $...$! – cfr Mar 29 '16 at 0:11
• @cfr I tried [scale=<factor>]... It didn't work in this case. :( – Anthony Pulido Mar 29 '16 at 17:18
• @cfr Within what should I put tikzpicture instead? – Anthony Pulido Mar 29 '16 at 17:18
• It doesn't make sense. It is not mathematics. Even if some of the content is maths, you'd still need to switch to maths mode within the picture to typeset that particular content. – cfr Mar 29 '16 at 22:51

Pass the option radius=<value> to the \graph command.

\documentclass[12pt]{amsart}
\usepackage{tikz}
\usetikzlibrary{arrows,trees,graphs}
\usetikzlibrary{graphdrawing}
\usegdlibrary{trees,force}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}

\begin{tikzpicture}
\graph[clockwise=7,radius=3cm,math nodes, edges = {double equal sign distance, -implies}] { "p_1", "p_2", "p_3", "p_4", "p_5", "p_6", "p_7"; "p_1" -> "p_2" -> "p_3" -> "p_4" -> "p_5" -> "p_6" -> "p_7" -> "p_1" };
\end{tikzpicture}
\end{document}


• Thank you!! "Radius" is an option I didn't even know could be used in \graph! Thanks again!! – Anthony Pulido Mar 29 '16 at 14:42
• @AnthonyPulido The /graph drawing/radius key is documented: section 27.11 "Miscellaneous Options", p.396, pgfmanual v3.0.1a. – Paul Gaborit Mar 29 '16 at 15:07