Currently we can add shape only to nodes:
Node A = Node.builder().label("A").shape(shape).build();
However, it would be very nice if it were possible to add shapes to clusters. Although it is not a standard graphviz feature it is possible to do - https://forum.graphviz.org/t/clusters-outline-geometry-attribute/313/2
So, I suggest to add something like this
Cluster.builder().shape(shape)...
or like this (to show it is not standard) :
ShapedCluster.builder().shape(shape)...
The reason is that it is very often necessary to add shapes not only to nodes but also for containers: For example, in UML:

If this feature is implemented then I think it is also necessary to add possibility to add edges between clusters and between clusters and nodes.
Currently we can add shape only to nodes:
However, it would be very nice if it were possible to add shapes to clusters. Although it is not a standard graphviz feature it is possible to do - https://forum.graphviz.org/t/clusters-outline-geometry-attribute/313/2
So, I suggest to add something like this
or like this (to show it is not standard) :
The reason is that it is very often necessary to add shapes not only to nodes but also for containers: For example, in UML:
If this feature is implemented then I think it is also necessary to add possibility to add edges between clusters and between clusters and nodes.