Graph_of_non-adjacent_weekdays.svg


Summary

Description
English: Graph of non-adjacent weekdays, isomorphic to the circular clique K 7/2
Date
Source Own work
Author Tokenzero

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero 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.

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