Newbie: Rendering for Hours with No Results

Dear friends,

I’m completely new to Graphviz and started using it to visualize the relationships between devices in a ZigBee network.

For more details, see the script here:
LinkToZigbeeScript

However, I’ve encountered an issue where the script never completes. I isolated the root cause to a “dot” process that consumes 100% CPU and runs indefinitely.

I ran the file on my 11th Gen Core i7-11850H @ 2.50GHz with 16GB of RAM, but after 8 hours, there was still no output.

Please find the attached file that needs rendering. Any ideas on how to resolve this?

Thanks!

zigbee_map_anonymized_macs.txt (56.7 KB)

The good news:
change splines=curved to splines=true and the graph should run in a minute or two.

The less good news:
dot is not a very good layout engine for this graph. Dot works best for hierarchical (directed) graphs.
Your graph, like many data networks, does not seem to be hierarchical. (See more below)
Here are the changes I made to your input:

	overlap=scale    // does not apply to dot
	overlap=false    // just a guess. not sure how it compares to scale
	//root=0         // does not apply to dot
	//splines=curved // does not work with edge labels.  try using xlabels
	splines=true

I created 90+ outputs using various combinations of layout engine & other attributes. Below are four I liked best. Circo produced the best to my eye - but everyone gets an opinion.

2 Likes

Wow, thank you so much! Now that it renders, I can see how to continue with the ideal chart. I guess the network is hierarchical, but it also shows siblings, which makes it look a bit weird. I can start over by rendering my first charts.

Have a pleasant day!
/Franz