For my application I need to represent simultaneously (on the same graph) two relations: one is simmetric, the other is not.
Targets:
Is there a way of doing this with dot?
DOT is the text file format of the suite GraphViz. It has a human-readable syntax that describes network data, including subgraphs and elements appearances (i.e. color, width, label).
Graphviz is an open-source python module that is used to create graph objects which can be completed using different nodes and edges. It is based on the DOT language of the Graphviz software and in python it allows us to download the source code of the graph in DOT language.
digraph { A; B; C subgraph Rel1 { edge [dir=none, color=red] A -> B -> C -> A } subgraph Rel2 { edge [color=blue] B -> C C -> A } }
You can pass dir=none
as an edge property to the undirected graph connections:
digraph { A; B; C A -> B B -> C C -> A [dir=none] }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With