Файл:Directed medial graph example.svg
Материал из Википедии — свободной энциклопедии
Перейти к навигации
Перейти к поиску
Размер этого PNG-превью для исходного SVG-файла: 510 × 146 пкс. Другие разрешения: 320 × 92 пкс | 640 × 183 пкс | 1024 × 293 пкс | 1280 × 366 пкс | 2560 × 733 пкс.
Исходный файл (SVG-файл, номинально 510 × 146 пкс, размер файла: 30 КБ)
Этот файл находится на Викискладе. Сведения о нём показаны ниже.
Викисклад — централизованное хранилище для свободных файлов, используемых в проектах Викимедиа.
Сообщить об ошибке с файлом |
Краткое описание
ОписаниеDirected medial graph example.svg |
English: Example of a plane graph (in blue) and its directed medial graph (in red). |
Дата | |
Источник |
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,backgrounds,positioning}
\begin{document}
\def\nodeDist{2.5cm}
\def\arrowType{triangle 60}
\def\fillColor{black!20}
\def\position{0.6}
\tikzstyle{origVertex} = [draw, blue, fill, shape=circle]
\tikzstyle{newVertex} = [draw, red , fill, shape=circle]
\tikzstyle{invisibleVertex} = [shape=circle]
\tikzstyle{origEdge} = [blue]
\tikzstyle{newEdge} = [red, densely dashed]
\tikzstyle{invisibleEdge} = [draw opacity=0]
\begin{tikzpicture}[node distance=\nodeDist,>=\arrowType,semithick]
\node[origVertex] (0) {};
\node[origVertex] (1) [right of=0] {};
\node[origVertex] (2) [below of=1] {};
\node[origVertex] (3) [left of=2] {};
\path (0) edge[origEdge] node[invisibleVertex] (m0) {} (1)
(1) edge[origEdge] node[invisibleVertex] (m1) {} (2)
(2) edge[origEdge] node[invisibleVertex] (m2) {} (3)
(3) edge[origEdge] node[invisibleVertex] (m3) {} (0);
\path (m0) edge[invisibleEdge] (m1)
edge[invisibleEdge, out= 45, in= 45, looseness=3, overlay] node[invisibleVertex, pos=\position] (e0) {} (m1)
(m1) edge[invisibleEdge] (m2)
edge[invisibleEdge, out= -45, in= -45, looseness=3, overlay] node[invisibleVertex, pos=\position] (e1) {} (m2)
(m2) edge[invisibleEdge] (m3)
edge[invisibleEdge, out=-135, in=-135, looseness=3, overlay] node[invisibleVertex, pos=\position] (e2) {} (m3)
(m3) edge[invisibleEdge] (m0)
edge[invisibleEdge, out= 135, in= 135, looseness=3, overlay] node[invisibleVertex, pos=\position] (e3) {} (m0);
\node[invisibleVertex, below=0cm of e0] {};
\node[invisibleVertex, left =0cm of e1] {};
\node[invisibleVertex, above=0cm of e2] {};
\node[invisibleVertex, right=0cm of e3] {};
\end{tikzpicture}
\qquad
\begin{tikzpicture}[node distance=\nodeDist,>=\arrowType,semithick]
\node[origVertex] (0) {};
\node[origVertex] (1) [right of=0] {};
\node[origVertex] (2) [below of=1] {};
\node[origVertex] (3) [left of=2] {};
\path (0) edge[origEdge] node[newVertex] (m0) {} (1)
(1) edge[origEdge] node[newVertex] (m1) {} (2)
(2) edge[origEdge] node[newVertex] (m2) {} (3)
(3) edge[origEdge] node[newVertex] (m3) {} (0);
\path (m0) edge[->, newEdge] (m1)
edge[<-, newEdge, out= 45, in= 45, looseness=3, overlay] node[invisibleVertex, pos=\position] (e0) {} (m1)
(m1) edge[->, newEdge] (m2)
edge[<-, newEdge, out= -45, in= -45, looseness=3, overlay] node[invisibleVertex, pos=\position] (e1) {} (m2)
(m2) edge[->, newEdge] (m3)
edge[<-, newEdge, out=-135, in=-135, looseness=3, overlay] node[invisibleVertex, pos=\position] (e2) {} (m3)
(m3) edge[->, newEdge] (m0)
edge[<-, newEdge, out= 135, in= 135, looseness=3, overlay] node[invisibleVertex, pos=\position] (e3) {} (m0);
\node[invisibleVertex, below=0cm of e0] {};
\node[invisibleVertex, left =0cm of e1] {};
\node[invisibleVertex, above=0cm of e2] {};
\node[invisibleVertex, right=0cm of e3] {};
\begin{scope}[on background layer, overlay]
\fill[fill=\fillColor] (m0. 45) to [out= 45, in= 45, looseness=3] (m1. 45) to (m1.center) to (m0.center) to (m0. 45);
\fill[fill=\fillColor] (m1. -45) to [out= -45, in= -45, looseness=3] (m2. -45) to (m2.center) to (m1.center) to (m1. -45);
\fill[fill=\fillColor] (m2.-135) to [out=-135, in=-135, looseness=3] (m3.-135) to (m3.center) to (m2.center) to (m2.-135);
\fill[fill=\fillColor] (m3. 135) to [out= 135, in= 135, looseness=3] (m0. 135) to (m0.center) to (m3.center) to (m3. 135);
\end{scope}
\end{tikzpicture}
\qquad
\begin{tikzpicture}[node distance=\nodeDist,>=\arrowType,semithick]
\node[invisibleVertex] (0) {};
\node[invisibleVertex] (1) [right of=0] {};
\node[invisibleVertex] (2) [below of=1] {};
\node[invisibleVertex] (3) [left of=2] {};
\path (0) edge[invisibleEdge] node[draw opacity=100, newVertex] (m0) {} (1)
(1) edge[invisibleEdge] node[draw opacity=100, newVertex] (m1) {} (2)
(2) edge[invisibleEdge] node[draw opacity=100, newVertex] (m2) {} (3)
(3) edge[invisibleEdge] node[draw opacity=100, newVertex] (m3) {} (0);
\path (m0) edge[->, newEdge] (m1)
edge[<-, newEdge, out= 45, in= 45, looseness=3, overlay] node[invisibleVertex, pos=\position] (e0) {} (m1)
(m1) edge[->, newEdge] (m2)
edge[<-, newEdge, out= -45, in= -45, looseness=3, overlay] node[invisibleVertex, pos=\position] (e1) {} (m2)
(m2) edge[->, newEdge] (m3)
edge[<-, newEdge, out=-135, in=-135, looseness=3, overlay] node[invisibleVertex, pos=\position] (e2) {} (m3)
(m3) edge[->, newEdge] (m0)
edge[<-, newEdge, out= 135, in= 135, looseness=3, overlay] node[invisibleVertex, pos=\position] (e3) {} (m0);
\node[invisibleVertex, below=0cm of e0] {};
\node[invisibleVertex, left =0cm of e1] {};
\node[invisibleVertex, above=0cm of e2] {};
\node[invisibleVertex, right=0cm of e3] {};
\begin{scope}[on background layer, overlay]
\fill[fill=\fillColor] (m0. 45) to [out= 45, in= 45, looseness=3] (m1. 45) to (m1.center) to (m0.center) to (m0. 45);
\fill[fill=\fillColor] (m1. -45) to [out= -45, in= -45, looseness=3] (m2. -45) to (m2.center) to (m1.center) to (m1. -45);
\fill[fill=\fillColor] (m2.-135) to [out=-135, in=-135, looseness=3] (m3.-135) to (m3.center) to (m2.center) to (m2.-135);
\fill[fill=\fillColor] (m3. 135) to [out= 135, in= 135, looseness=3] (m0. 135) to (m0.center) to (m3.center) to (m3. 135);
\end{scope}
\end{tikzpicture}
\end{document}
|
Автор | Self |
Лицензирование
Я, владелец авторских прав на это произведение, добровольно публикую его на условиях следующей лицензии:
Этот файл доступен на условиях Creative Commons CC0 1.0 Универсальной передачи в общественное достояние (Universal Public Domain Dedication). | |
Лица, связанные с работой над этим произведением, решили передать данное произведение в общественное достояние, отказавшись от всех прав на произведение по всему миру в рамках закона об авторских правах (а также связанных и смежных прав), в той степени, которую допускает закон. Вы можете копировать, изменять, распространять, исполнять данное произведение в любых целях, в том числе в коммерческих, без получения на это разрешения автора.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
Элементы, изображённые на этом файле
изображённый объект
26 марта 2013
image/svg+xml
История файла
Нажмите на дату/время, чтобы посмотреть файл, который был загружен в тот момент.
Дата/время | Миниатюра | Размеры | Участник | Примечание | |
---|---|---|---|---|---|
текущий | 19:03, 26 марта 2013 | 510 × 146 (30 КБ) | Bender2k14 | Edits to remove white space | |
16:06, 26 марта 2013 | 598 × 203 (30 КБ) | Bender2k14 | {{Information |Description ={{en|1=Example of a plane graph (in blue) and its directed medial graph (in red).}} |Source =<source lang="latex"> \documentclass{article} \thispagestyle{empty} \usepackage{fullpage} \usepackage{tikz} \usetikzlibr... |
Использование файла
Следующая страница использует этот файл:
Глобальное использование файла
Данный файл используется в следующих вики:
- Использование в en.wikipedia.org
- Использование в fr.wikipedia.org
- Использование в uk.wikipedia.org
Метаданные
Файл содержит дополнительные данные, обычно добавляемые цифровыми камерами или сканерами. Если файл после создания редактировался, то некоторые параметры могут не соответствовать текущему изображению.
Ширина | 408pt |
---|---|
Высота | 117pt |