@@ -1643,8 +1643,8 @@ def legend(
16431643 ## From https://stackoverflow.com/questions/3499056/making-a-legend-key-in-graphviz
16441644 # Render it manually with these python commands, and remember to update result in git:
16451645 #
1646- # from graphtik.plot import legend
1647- # legend('docs/source/images/GraphtikLegend.svg')
1646+ # from graphtik import plot
1647+ # plot. legend('docs/source/images/GraphtikLegend.svg')
16481648 dot_text = (
16491649 """
16501650 digraph {
@@ -1661,15 +1661,15 @@ def legend(
16611661 needs [color=invis];
16621662 needs -> provides [tooltip="Compulsory dependency from src Operation --> dst `provides` data"];
16631663 provides [color=invis];
1664- provides -> optional [style=dashed];
1664+ provides -> optional [style=dashed label="**kw" ];
16651665 optional [color=invis label="optional\n partial out"
16661666 tooltip="Target operation may run without source `need` OR source operation may not `provide` target data."
16671667 URL="%(arch_url)s#term-needs"];
1668- optional -> keyword [label="**kw" ];
1669- keyword [color=invis label="keyword "
1668+ optional -> implicit [dir=both arrowtail=inv arrowhead=obox ];
1669+ implicit [color=invis label="implicit "
16701670 tooltip="A `need` passed in as **kw argument underlying fn."
1671- URL="%(arch_url)s/../reference.html#graphtik.modifier.keyword "];
1672- keyword -> sideffect [color=blue];
1671+ URL="%(arch_url)s#term-implicit "];
1672+ implicit -> sideffect [color=blue];
16731673 sideffect [color=invis
16741674 tooltip="Fictive data not consumed/produced by operation functions."
16751675 URL="%(arch_url)s#term-sideffects"];
@@ -1691,24 +1691,26 @@ def legend(
16911691
16921692 DataLabel [shape=plaintext fontsize=16 fontname="bold italic"
16931693 label=Data];
1694- data [shape=rect
1694+ data [shape=rect fixedsize=shape
16951695 tooltip="Any data not given or asked."
16961696 URL="%(arch_url)s#term-graph"];
1697- input [shape=invhouse
1697+ input [shape=invhouse fixedsize=shape
16981698 tooltip="Solution value given into the computation."
16991699 URL="%(arch_url)s#term-inputs"];
1700- output [shape=house
1700+ output [shape=house fixedsize=shape
17011701 tooltip="Solution value asked from the computation."
17021702 URL="%(arch_url)s#term-outputs"];
1703- inp_out [shape=hexagon label="inp+out"
1703+ inp_out [shape=hexagon label="inp+out" fixedsize=shape
17041704 tooltip="Data both given and asked."
17051705 URL="%(arch_url)s#term-dependency"];
17061706 evicted %(evicted)s
17071707 sfx %(sfx)s
1708- sol [shape=rect style=filled fillcolor=wheat label="with value"
1708+ sol [shape=rect fixedsize=shape
1709+ style=filled fillcolor=wheat label="with value"
17091710 tooltip="Data contained in the solution."
17101711 URL="%(arch_url)s#term-solution"];
1711- overwrite [shape=rect style=filled fillcolor=SkyBlue
1712+ overwrite [shape=rect fixedsize=shape
1713+ style=filled fillcolor=SkyBlue
17121714 tooltip="More than 1 values exist in solution with this name."
17131715 URL="%(arch_url)s#term-overwrite"];
17141716 DataLabel -> data -> input -> output -> inp_out -> sfx -> evicted -> sol -> overwrite [style=invis];
0 commit comments