Skip to content

Instantly share code, notes, and snippets.

@mjkloeckner
Last active June 13, 2024 20:45
Show Gist options
  • Save mjkloeckner/41054a8d6c8b6b6e86725637d6230ffa to your computer and use it in GitHub Desktop.
Save mjkloeckner/41054a8d6c8b6b6e86725637d6230ffa to your computer and use it in GitHub Desktop.
DOT specification for graph of objects and attributes in CB100/tp2
digraph G {
node [ shape=box ];
compound=true;
subgraph cluster_objetos {
rankdir=same
node [ shape=box, style=filled, fillcolor=white ];
C [ label="Barrio" ];
D [ label="Parada" ];
label="Objetos";
// bgcolor="#DD2D4A";
graph [style=dashed];
}
C1 [ label="Nombre" ];
C2 [ label="Comuna" ];
C3 [ label="Altura Plano" ];
C -> {C1, C2, C3};
D1 [ label="Líneas" ];
D11 [ label="Sentido" ];
D12 [ label="Número" ];
D1 -> {D11, D12};
D2 [ label="Coordenadas" ];
D3 [ label="Dirección" ];
D31 [ label="Calle" ];
D32 [ label="Altura" ];
D3 -> {D31, D32};
D -> {D1, D2, D3};
}
@mjkloeckner
Copy link
Author

mjkloeckner commented Jun 13, 2024

Generate an image with dot -Gdpi=300 objetos.gv -T png -o ./objetos.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment