Thanks @erg. I did something similar in https://gitlab.com/graphviz/graphviz/-/commit/0927817d203d61305da2b019f244744c10b588e6