# A radial Graphviz engine (pre-processor)

**URL:** <https://forum.graphviz.org/t/a-radial-graphviz-engine-pre-processor/1271>\
**Category:** Show and Tell\
**Created:** [August 3, 2022, 11:38pm UTC](https://forum.graphviz.org/t/a-radial-graphviz-engine-pre-processor/1271 "2022-08-03T23:38:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [August 3, 2022, 11:38pm UTC](https://forum.graphviz.org/t/a-radial-graphviz-engine-pre-processor/1271/1 "2022-08-03T23:38:16Z")

</div>

**RadialLayout** a **gvpr** pre-processor that feeds `neato -n`  
new _node_ attributes:

- **radialangle** - angle from the origin line units: _radians_, _degrees_, or _“fraction”_ (3/17) (divide 360 into 17 slices, and position at 3rd). By default, angles are in counter-clockwise direction.
- **radialdistance** distance from 0,0 in direction/angle specified by **radialangle** units: _inches_ or _points_ (_ni_ or _pt_. No unit defaults to inches)

new _graph_ attributes:

- **radialclockwise** used to request clockwise angle measurements. Values: _true_ or _false_, _false_ is default
- **radialstart** set origin line, where default origin line is a line heading from the center of the graph off to the right or (a line from 0,0 toward 999999,0) or (a line going due East). Legal values: (clock values) _1oc_, _2oc_, …,_12oc_ and (compass points) _n, s, e, w, ne, ne, se, sw_

Of note:

- All nodes _must_ have **radialangle** & **radialdistance** values
- clusters do not (easily) work - a **neato** issue
- difficult to set **label=“”** - a **gvpr** issue
- Only lightly tested!!

Output examples:

 ![radialTest2](https://global.discourse-cdn.com/graphviz/original/1X/7c8341c6736b187db10188e8d24905eb6d118f93.png)  
 ![radialTest101](https://global.discourse-cdn.com/graphviz/original/1X/b9e32155965468ff929a26753f212f109e091430.png)  
 ![radialTest102](https://global.discourse-cdn.com/graphviz/original/1X/e799d5d89c826cffba9107feaf8e7800459921bc.png)  
 ![radialTest103](https://global.discourse-cdn.com/graphviz/original/1X/2488df7a8f354e5c248b732c2036ae0e410a2354.png)  
 ![radialTest104](https://global.discourse-cdn.com/graphviz/original/1X/8165f03ddaab12498a3dc56d266f5a7bdac948ca.png)

---

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [August 4, 2024, 10:14pm UTC](https://forum.graphviz.org/t/a-radial-graphviz-engine-pre-processor/1271/2 "2024-08-04T22:14:15Z")

</div>

For completeness, the program can be found here: [Graphviz Radial Layout Engine (shell archive) · GitHub](https://gist.github.com/steveroush/60d9a850a545ec4e02b0482c7bac3ad5)

Slowly working on adding to Graphviz directly

---

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [September 23, 2024, 12:25am UTC](https://forum.graphviz.org/t/a-radial-graphviz-engine-pre-processor/1271/3 "2024-09-23T00:25:52Z")

</div>

radialEngine now supports multiple centers, via a new **CenterOn** attribute. It can still be found [here].([radialLayout.gvpr - a multi-centric radial layout engine for Graphviz · GitHub](https://gist.github.com/steveroush/60d9a850a545ec4e02b0482c7bac3ad5))

 ![radialTestNew4](https://global.discourse-cdn.com/graphviz/original/2X/5/585a886a49408103a4ecf6ea8775260b2067b4d4.png)
