Skip to content

Commit 5e0993f

Browse files
committed
enh(plot): Edge ops & data fron North-->South
1 parent 6b92afb commit 5e0993f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

graphtik/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ class Theme:
611611
## EDGE
612612
##
613613

614-
kw_edge = {}
614+
kw_edge = {"tailport": "s", "headport": "n"}
615615
kw_edge_optional = {"style": ["dashed"]}
616616
kw_edge_sideffect = {"color": "blue"}
617617
#: Added conditionally if `alias_of` found in edge-attrs.

test/test_plot.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -562,12 +562,12 @@ def test_node_dot_str0(dot_str_pipeline):
562562
><B>FN:</B> test.test_plot.func</TD>
563563
</TR>
564564
</TABLE>>, shape=plain, tooltip=<cu:sto:m>];
565-
<edge> -> <node>;
566-
<edge> -> <cu&#58;sto&#58;m>;
567-
<digraph&#58; strict> -> <node>;
568-
<digraph&#58; strict> -> <cu&#58;sto&#58;m>;
569-
<node> -> <&lt;graph&gt;>;
570-
<cu&#58;sto&#58;m> -> <&lt;graph&gt;>;
565+
<edge> -> <node> [headport=n, tailport=s];
566+
<edge> -> <cu&#58;sto&#58;m> [headport=n, tailport=s];
567+
<digraph&#58; strict> -> <node> [headport=n, tailport=s];
568+
<digraph&#58; strict> -> <cu&#58;sto&#58;m> [headport=n, tailport=s];
569+
<node> -> <&lt;graph&gt;> [headport=n, tailport=s];
570+
<cu&#58;sto&#58;m> -> <&lt;graph&gt;> [headport=n, tailport=s];
571571
legend [URL="https://graphtik.readthedocs.io/en/latest/_images/GraphtikLegend.svg", fillcolor=yellow, shape=component, style=filled, target=_blank];
572572
}
573573
"""
@@ -607,9 +607,9 @@ def test_node_dot_str1(dot_str_pipeline, monkeypatch):
607607
</TABLE>>, shape=plain, tooltip=<cu:sto:m>];
608608
}
609609
610-
<edge> -> <cu&#58;sto&#58;m>;
611-
<digraph&#58; strict> -> <cu&#58;sto&#58;m>;
612-
<cu&#58;sto&#58;m> -> <&lt;graph&gt;>;
610+
<edge> -> <cu&#58;sto&#58;m> [headport=n, tailport=s];
611+
<digraph&#58; strict> -> <cu&#58;sto&#58;m> [headport=n, tailport=s];
612+
<cu&#58;sto&#58;m> -> <&lt;graph&gt;> [headport=n, tailport=s];
613613
legend [URL="https://graphtik.readthedocs.io/en/latest/_images/GraphtikLegend.svg", fillcolor=yellow, shape=component, style=filled, target=_blank];
614614
}
615615
"""

0 commit comments

Comments
 (0)