Skip to content

Add shape to clusters #4

@PavelTurk

Description

@PavelTurk

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:

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions