Jump to content

User:Tentacle Monster/Sandbox

From Wikipedia, the free encyclopedia

A way of creating a graph with a timeline using Graphviz.

Testing signature. —Philip N. 00:22, 4 October 2005 (UTC)

digraph RogueLikes {
        // Formatting.
        ratio=auto;
        node [shape=plaintext,fontname=Times];
        ranksep=0.1; nodesep=0.1; center=true;

        // Setting up the timeline.
        { edge [style=invis,weight=100.0];
          node [margin=0.0,fontname=Helvetica];
          1980 -> 1981 -> 1982 -> 1983 -> 1984 -> 1985 -> 1986 -> 1987 -> 1988 -> 1989 -> 1990 -> 1991 -> 1992 -> 1993 -> 1994 -> 1995 -> 1996 -> 1997 -> 1998 -> 1999 -> 2000 -> future;
        }
        { rank=max; future; }

        // Roguelikes per year.
        { rank=min;
          1980;
          Rogue;
        }
        { rank=same;
          1983;
          Moria;
        }
        { rank=same;
          1984;
          "Advanced Rogue";
        }
        { rank=same;
          1985;
          Hack;
          UltraRogue;
        }
        { rank=same;
          1986;
          Larn;
        }
        { rank=same;
          1987;
          NetHack;
          Omega;
        }
        { rank=same;
          1988;
        }
        {  rank=same;
          1989;
          ULarn;
        }
        { rank=same;
          1990;
        }
        { rank=same;
          1991;
          Angband;
        }
        { rank=same;
          1992;
        }
        { rank=same;
          1993;
          "Angband--";
        }
        { rank=same;
          1994;
          Zangband;
          ADOM;
        }
        { rank=same;
          1997;
          "Dungeon Crawl";
        }
        { rank=same;
          1998;
          ToME;
        }
        { rank=same;
          1999;
          Tyrant;
        }
        { rank=same;
          2000;
          iLarn;
        }

        // Inspired.
        { edge [style=dotted,weight=1.0];
          NetHack -> "Dungeon Crawl";
          Moria -> "Dungeon Crawl";
          Hack -> "Dungeon Crawl";
          Rogue -> Moria;
          Rogue -> Tyrant;
        }
        // Direct or almost direct inheritance.
        { edge [weight=2.0]
          Rogue -> "Advanced Rogue" -> UltraRogue;
          Rogue -> Hack -> NetHack;
          Moria -> Angband -> "Angband--" -> Zangband -> ToME;
          Larn -> ULarn -> iLarn;
        }
}