File:Graph of non-adjacent weekdays.svg
From testwiki
Jump to navigation
Jump to search
Original file (SVG file, nominally 277 × 221 pixels, file size: 18 KB)
Contents
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
| DescriptionGraph of non-adjacent weekdays.svg |
English: Graph of non-adjacent weekdays, isomorphic to the circular clique K7/2 |
| Date | |
| Source | Own work |
| Author | Tokenzero |
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
| This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
| The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
LaTeX/TikZ source code
%\documentclass{minimal}
\documentclass[tikz,border=5pt]{standalone}
%% Compile svg by running:
%% latex example.tex #OR: lualatex --output-format=dvi example.tex
%% dvisvgm --bbox=5 example.dvi
\usepackage{tikz}
\usepackage{microtype}
\DisableLigatures{encoding = *, family = * }
\usetikzlibrary{calc}
\begin{document}%
\begin{tikzpicture}[
scale=1,every node/.style={draw,circle,fill=blue!40!black},
]
\def\diam{2.3};
\foreach \x/\day/\c in {0/Monday/1, 1/Tuesday/1, 2/Wednesday/3.5, 3/Thursday/3.6, 4/Friday/4, 5/Saturday/4, 6/Sunday/7}
\node[label={(-\c*360/7)}:\day ] (d\x) at ({(-\x*360/7)}:\diam) {};
\foreach \x in {0,...,6}
{
\pgfmathtruncatemacro{\xp}{mod(\x+2,7)};
\draw (d\x.center) to[bend right=10] (d\xp.center);
\pgfmathtruncatemacro{\xpp}{mod(\x+3,7)};
\draw (d\x.center) to[bend right=1] (d\xpp.center);
}
\foreach \x/\day/\c in {0/Monday/1, 1/Tuesday/1, 2/Wednesday/3.5, 3/Thursday/3.6, 4/Friday/4, 5/Saturday/4, 6/Sunday/7}
\node[label={(-\c*360/7)}:\day] (d\x) at ({(-\x*360/7)}:\diam) {};
\end{tikzpicture}%
\end{document}
Captions
Add a one-line explanation of what this file represents
Items portrayed in this file
depicts
2 April 2017
18,307 byte
image/svg+xml
4f89a036129a070ef6a31744bfcd9280b1fc1b79
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 13:28, 2 April 2017 | 277 × 221 (18 KB) | wikimediacommons>Tokenzero | sans font |
File usage
There are no pages that use this file.