user5507535
user5507535

Reputation: 1800

Is it possible to have nested node shapes on Graphviz?

Is it possible to have nested shapes on Graphviz?

I would like to have a diamond inside a square, like the image bellow:

ER Associative entity

Upvotes: 2

Views: 828

Answers (2)

user5507535
user5507535

Reputation: 1800

I got a solution:

subgraph cluster_1 {
    margin = 1;
    label  = "";
    associative_entity [shape = diamond, height = 1];
}

Upvotes: 2

magjac
magjac

Reputation: 937

The Msquare shape might be close enough if your own solution doesn't work well for what you want.

Upvotes: 0

Related Questions