# How to create a new node type?

**URL:** <https://forum.graphviz.org/t/how-to-create-a-new-node-type/1096>\
**Category:** Dev\
**Created:** [March 28, 2022, 8:20pm UTC](https://forum.graphviz.org/t/how-to-create-a-new-node-type/1096 "2022-03-28T20:20:00Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [March 29, 2022, 5:29am UTC](https://forum.graphviz.org/t/how-to-create-a-new-node-type/1096/4 "2022-03-29T05:29:35Z")

</div>

See this: [FAQ | Graphviz](https://graphviz.org/faq/#FaqCustShape)  
Any general-purpose or even kind-of general purpose additions would be great.  
However, before you get into the guts of the code, consider these possibilities:

- Creating (complex) images outside of Graphviz and than using the **image** attribute
- The **class** attribute ([class | Graphviz](https://graphviz.org/docs/attrs/class/))
- Positioning nodes on top of each other
  - [Stupid Dot tricks](https://forum.graphviz.org/t/stupid-dot-tricks/31)
  - [Onion Diagram (Nested Ellipses) - #6 by steveroush](https://forum.graphviz.org/t/onion-diagram-nested-ellipses/541/6)

---

_[View the full topic](https://forum.graphviz.org/t/how-to-create-a-new-node-type/1096)._
