topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday October 22, 2020, 4:46 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Anyone played with graphviz tool for drawing graphs?  (Read 782 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,379
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Anyone played with graphviz tool for drawing graphs?
« on: December 29, 2019, 06:30 PM »
Spent a day last week playing around with python, networkx (python lib), and graphviz (language neutral), for drawing and laying out graphs.

My boardgaming buddy and I are huge fans of the pandemic series of board games.  We played recently Rising Tide, a spinoff with a very confusing looking board.  I decided to see if a more traditional node-edge graph would help make sense of the layout, and thought it was a good excuse to get some familiarity with writing code to visualize graphs, etc.

Here's the original board:
rtidereal.pngAnyone played with graphviz tool for drawing graphs?

Here's the graph:
rtidesmall.pngAnyone played with graphviz tool for drawing graphs?

Fun stuff.. Anyone else played with graphviz or networkx?

ps1.
There is a nice windows build of Python3 which is completely portable -- WinPython.  I had good luck with that.
ps2.
I'm not a big fan of Rising Tide, I think the other spinoffs are much better.

Shades

  • Member
  • Joined in 2006
  • **
  • Posts: 2,699
    • View Profile
    • Donate to Member
Re: Anyone played with graphviz tool for drawing graphs?
« Reply #1 on: December 29, 2019, 10:24 PM »
Some side notes:
That is a pretty warped (and incorrect) map of the Netherlands. Most of the big waterworks are quite well (pun intended) indicated on that map though.

But there are so many more and those are missing. One very long canal in the south has been omitted. I lived near it at the time. It has many sluices/locks for the leveling of water between two big rivers (the Maas and the Rhine). There are more and more ancient water works. One of those enables the capital city from the southern province of Noord-Brabant to defend itself against (land-based) invaders. And it still works after 400 years. That was tested, because in my youth there was a period of heavy rainfall in the area where I lived, but also in the areas where the rivers Maas and Rhine sprung from.

My home was about 10 miles away from that capital city and lots of cattle had to be moved and crops were wasted as grass fields and crop fields were flooded by that water-based defense system from the capital. Quite some bridges became submerged, sluices in the canal had a lot of problems, the moat of a castle nearby my village rose significantly (resulted in 5 year long repairs at that castle)... After a day, the old pumps in and near the capital started their work again and pushed the excess out as fast as the downstream cities, sluices and harbors could manage. About 100 miles are between the province's capital and the North Sea, where the rivers Maas and Rhine end up. Took three to four days to get rid of all the excess.

Not much repairs needed on river dikes, bridges, sluices etc. though. Solid engineering and tax money efficiently at work. In the area where I lived, all the water-works are semi-state and they take their job seriously.

A good example of: "It ain't much, if it ain't Dutch."  :P