|
@@ -66,11 +66,11 @@ def digraph(collection: PersonCollection) -> graphviz.dot.Digraph:
|
|
|
>>> print(graph.source)
|
|
|
digraph yamily {
|
|
|
subgraph cluster_grace {
|
|
|
- rank=same
|
|
|
+ rank=same style=invisible
|
|
|
grace [label=grace shape=box]
|
|
|
}
|
|
|
subgraph cluster_carol {
|
|
|
- rank=same
|
|
|
+ rank=same style=invisible
|
|
|
carol [label=carol shape=box]
|
|
|
"relation-bob-carol" [shape=point width=0]
|
|
|
bob -> "relation-bob-carol" [arrowhead=none constraint=False]
|
|
@@ -78,15 +78,15 @@ def digraph(collection: PersonCollection) -> graphviz.dot.Digraph:
|
|
|
bob [label=bob shape=box]
|
|
|
}
|
|
|
subgraph cluster_frank {
|
|
|
- rank=same
|
|
|
+ rank=same style=invisible
|
|
|
frank [label=frank shape=box]
|
|
|
}
|
|
|
subgraph cluster_alice {
|
|
|
- rank=same
|
|
|
+ rank=same style=invisible
|
|
|
alice [label=alice shape=box]
|
|
|
}
|
|
|
subgraph cluster_david {
|
|
|
- rank=same
|
|
|
+ rank=same style=invisible
|
|
|
david [label=david shape=box]
|
|
|
}
|
|
|
grace -> carol
|
|
@@ -105,7 +105,7 @@ def digraph(collection: PersonCollection) -> graphviz.dot.Digraph:
|
|
|
continue
|
|
|
# https://graphviz.gitlab.io/_pages/Gallery/directed/cluster.html
|
|
|
with graph.subgraph(name="cluster_" + person.identifier) as subgraph:
|
|
|
- subgraph.attr(rank="same")
|
|
|
+ subgraph.attr(rank="same", style="invisible")
|
|
|
_add_person_node(subgraph, person)
|
|
|
nodes.add(person)
|
|
|
for coparent in collection.get_coparents(person):
|