summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/force/ControlStart.lua
blob: b62be10c0a552fb58725ddb6e13df653a1f9062d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
-- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information

-- @release $Header$


-- Imports
local declare = require("pgf.gd.interface.InterfaceToAlgorithms").declare




---
-- @section subsubsection {Start Configuration}
--
-- Currently, the start configuration for force-based algorithms is a
-- random distribution of the vertices. You can influence it by
-- changing the |random seed|:
--
--\begin{codeexample}[]
--\tikz \graph [random seed=10, spring layout] {
--  a -- {b, c, d} -- e -- f -- {g,h} -- {a,b,e};
--};
--\end{codeexample}
--\begin{codeexample}[]
--\tikz \graph [random seed=11, spring layout] {
--  a -- {b, c, d} -- e -- f -- {g,h} -- {a,b,e};
--};
--\end{codeexample}
--
-- Other methods, like a planar preembedding, are not implemented
-- currently. 
--
-- @end