[Dot] Adding Chuck Hagel to directed graph causes duplicate links to appear elsewhere in the graph.
Ported Issue from Mantis Original ID: 2364 Reported By: jsnow
SEVERITY: MAJOR Submitted: 2013-09-10 19:50:38
OS: UBUNTU
OS BUILD: 13.04
PLATFORM: LINUX
DESCRIPTION
I have a graph representing interactions between public figures involved in the current Syria crisis. Adding a particular "Chuck Hagel" -> "Government of Russia" link causes three other links to be duplicated 5 times for no obvious reason. (See attached svg.)
I experienced this using the default graphviz packages that came with Ubuntu, and also the current stable "raring" amd64 debs from http://www.graphviz.org/Download_linux_ubuntu.php.
The command I'm using is "dot -Tsvg syria.dot > syria.svg".
For what it's worth, you can see what I'm trying to do with this here: http://polink.org/i/665/n/syria-crisis
STEPS TO REPRODUCE
Graphviz source:
digraph { graph [bgcolor="transparent" aspect=1.5] "United States Government" [shape=box fontsize=9 URL="http://polink.org/e/2" target="_top"] "United States Executive Branch" [shape=box fontsize=9 URL="http://polink.org/e/3" target="_top"] "United States Legislative Branch" [shape=box fontsize=9 URL="http://polink.org/e/4" target="_top"] "US President" [shape=box fontsize=9 URL="http://polink.org/e/11" target="_top"] "Barack Obama" [shape=plaintext fontsize=8 URL="http://polink.org/e/12" target="_top"] "US Congress" [shape=box fontsize=9 URL="http://polink.org/e/20" target="_top"] "US Senate" [shape=box fontsize=9 URL="http://polink.org/e/21" target="_top"] "US House" [shape=box fontsize=9 URL="http://polink.org/e/22" target="_top"] "Democratic Party" [shape=box fontsize=9 URL="http://polink.org/e/28" target="_top"] "John Boehner" [shape=plaintext fontsize=8 URL="http://polink.org/e/70" target="_top"] "Vladimir Putin" [shape=plaintext fontsize=8 URL="http://polink.org/e/100" target="_top"] "Barbara Boxer" [shape=plaintext fontsize=8 URL="http://polink.org/e/217" target="_top"] "Ted Cruz" [shape=plaintext fontsize=8 URL="http://polink.org/e/336" target="_top"] "Lindsey Graham" [shape=plaintext fontsize=8 URL="http://polink.org/e/399" target="_top"] "Eric Cantor" [shape=plaintext fontsize=8 URL="http://polink.org/e/500" target="_top"] "US Cabinet" [shape=box fontsize=9 URL="http://polink.org/e/572" target="_top"] "Secretary of Defense" [shape=box fontsize=9 URL="http://polink.org/e/574" target="_top"] "Government of Syria" [shape=box fontsize=9 URL="http://polink.org/e/587" target="_top"] "John Kerry" [shape=plaintext fontsize=8 URL="http://polink.org/e/588" target="_top"] "Secretary of State" [shape=box fontsize=9 URL="http://polink.org/e/590" target="_top"] "United Nations" [shape=box fontsize=9 URL="http://polink.org/e/614" target="_top"] "UN Security Council" [shape=box fontsize=9 URL="http://polink.org/e/616" target="_top"] "UNSC Permanent Members" [shape=box fontsize=9 URL="http://polink.org/e/619" target="_top"] "France" [shape=box fontsize=9 URL="http://polink.org/e/621" target="_top"] "Government of France" [shape=box fontsize=9 URL="http://polink.org/e/623" target="_top"] "President of France" [shape=box fontsize=9 URL="http://polink.org/e/626" target="_top"] "Fran\231ois Hollande" [shape=plaintext fontsize=8 URL="http://polink.org/e/628" target="_top"] "Ahmad al-Jarba" [shape=plaintext fontsize=8 URL="http://polink.org/e/639" target="_top"] "AIPAC" [shape=box fontsize=9 URL="http://polink.org/e/652" target="_top"] "Donald Rumsfeld" [shape=plaintext fontsize=8 URL="http://polink.org/e/662" target="_top"] "Government of Russia" [shape=box fontsize=9 URL="http://polink.org/e/670" target="_top"] "President of Russia" [shape=box fontsize=9 URL="http://polink.org/e/671" target="_top"] "Syria" [shape=box fontsize=9 URL="http://polink.org/e/676" target="_top"] "Chuck Hagel" [shape=plaintext fontsize=8 URL="http://polink.org/e/684" target="_top"] "Bashar al-Assad" [shape=plaintext fontsize=8 URL="http://polink.org/e/687" target="_top"] "President of Syria" [shape=box fontsize=9 URL="http://polink.org/e/688" target="_top"] "United States Government" -> "United States Legislative Branch" [color=blue4 URL="http://polink.org/l/9" target="_top"] "United States Government" -> "United States Executive Branch" [color=blue4 URL="http://polink.org/l/10" target="_top"] "United States Legislative Branch" -> "US Congress" [color=blue4 URL="http://polink.org/l/23" target="_top"] "US Congress" -> "US Senate" [color=blue4 URL="http://polink.org/l/25" target="_top"] "US Congress" -> "US House" [color=blue4 URL="http://polink.org/l/26" target="_top"] "Democratic Party" -> "Barack Obama" [color=lightseagreen URL="http://polink.org/l/29" target="_top"] "US President" -> "Barack Obama" [color=navy URL="http://polink.org/l/79" target="_top"] "US Senate" -> "Barbara Boxer" [color=lightseagreen URL="http://polink.org/l/219" target="_top"] "US Senate" -> "Ted Cruz" [color=lightseagreen URL="http://polink.org/l/338" target="_top"] "US Senate" -> "Lindsey Graham" [color=lightseagreen URL="http://polink.org/l/424" target="_top"] "United States Executive Branch" -> "US President" [color=blue4 URL="http://polink.org/l/441" target="_top"] "US House" -> "John Boehner" [color=lightseagreen URL="http://polink.org/l/464" target="_top"] "US House" -> "Eric Cantor" [color=lightseagreen URL="http://polink.org/l/501" target="_top"] "US President" -> "US Cabinet" [color=blue4 URL="http://polink.org/l/573" target="_top"] "US Cabinet" -> "Secretary of Defense" [color=blue4 URL="http://polink.org/l/575" target="_top"] "John Kerry" -> "Government of Syria" [color=red URL="http://polink.org/l/589" target="_top"] "US Cabinet" -> "Secretary of State" [color=blue4 URL="http://polink.org/l/591" target="_top"] "Secretary of State" -> "John Kerry" [color=navy URL="http://polink.org/l/592" target="_top"] "Barack Obama" -> "Government of Syria" [color=red URL="http://polink.org/l/612" target="_top"] "United Nations" -> "UN Security Council" [color=blue4 URL="http://polink.org/l/617" target="_top"] "UN Security Council" -> "UNSC Permanent Members" [color=blue4 URL="http://polink.org/l/620" target="_top"] "France" -> "Government of France" [color=blue4 URL="http://polink.org/l/625" target="_top"] "Government of France" -> "President of France" [color=blue4 URL="http://polink.org/l/627" target="_top"] "President of France" -> "Fran\231ois Hollande" [color=navy URL="http://polink.org/l/629" target="_top"] "Fran\231ois Hollande" -> "Government of Syria" [color=red URL="http://polink.org/l/631" target="_top"] "UNSC Permanent Members" -> "Government of France" [color=lightseagreen URL="http://polink.org/l/635" target="_top"] "John Kerry" -> "Ahmad al-Jarba" [color=green URL="http://polink.org/l/640" target="_top"] "Government of Syria" -> "Barack Obama" [color=red URL="http://polink.org/l/647" target="_top"] "Lindsey Graham" -> "Barack Obama" [color=green URL="http://polink.org/l/650" target="_top"] "Government of Syria" -> "Government of France" [color=red URL="http://polink.org/l/651" target="_top"] "AIPAC" -> "Government of Syria" [color=red URL="http://polink.org/l/656" target="_top"] "John Boehner" -> "Barack Obama" [color=green URL="http://polink.org/l/657" target="_top"] "Eric Cantor" -> "Barack Obama" [color=green URL="http://polink.org/l/658" target="_top"] "Barbara Boxer" -> "Barack Obama" [color=green URL="http://polink.org/l/659" target="_top"] "Ted Cruz" -> "Barack Obama" [color=red URL="http://polink.org/l/660" target="_top"] "Donald Rumsfeld" -> "Barack Obama" [color=green URL="http://polink.org/l/663" target="_top"] "Donald Rumsfeld" -> "Barack Obama" [color=red URL="http://polink.org/l/664" target="_top"] "Vladimir Putin" -> "John Kerry" [color=red URL="http://polink.org/l/668" target="_top"] "Vladimir Putin" -> "Government of Syria" [color=green URL="http://polink.org/l/669" target="_top"] "President of Russia" -> "Vladimir Putin" [color=navy URL="http://polink.org/l/672" target="_top"] "Government of Russia" -> "President of Russia" [color=blue4 URL="http://polink.org/l/673" target="_top"] "UNSC Permanent Members" -> "Government of Russia" [color=lightseagreen URL="http://polink.org/l/674" target="_top"] "Government of Syria" -> "Syria" [color=green URL="http://polink.org/l/679" target="_top"] "Government of Syria" -> "Syria" [color=red URL="http://polink.org/l/680" target="_top"] "Secretary of Defense" -> "Chuck Hagel" [color=navy URL="http://polink.org/l/685" target="_top"] "Chuck Hagel" -> "Government of Russia" [color=red URL="http://polink.org/l/686" target="_top"] "President of Syria" -> "Bashar al-Assad" [color=navy URL="http://polink.org/l/689" target="_top"] "Government of Syria" -> "President of Syria" [color=blue4 URL="http://polink.org/l/690" target="_top"] "Bashar al-Assad" -> "Government of Syria" [color=green URL="http://polink.org/l/691" target="_top"] }