diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lt3graph/lt3graph.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lt3graph/lt3graph.sty | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/lt3graph/lt3graph.sty b/Master/texmf-dist/tex/latex/lt3graph/lt3graph.sty index fea93df9070..5122b60b4f3 100644 --- a/Master/texmf-dist/tex/latex/lt3graph/lt3graph.sty +++ b/Master/texmf-dist/tex/latex/lt3graph/lt3graph.sty @@ -1,6 +1,6 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \iffalse %%%% % % -% Copyright (c) 2014 - Michiel Helvensteijn (www.mhelvens.net) % +% Copyright (c) 2016 - Michiel Helvensteijn (www.mhelvens.net) % % % % https://github.com/mhelvens/latex-lt3graph % % % @@ -48,7 +48,7 @@ % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\ProvidesExplPackage{lt3graph}{2014/08/31}{0.1.4} +\ProvidesExplPackage{lt3graph}{2016/03/30}{0.1.5} {a LaTeX3 datastructure for representing directed graphs with data} % \end{macrocode} % @@ -386,14 +386,14 @@ % \use:c{prop_#5put:cnf} {\__graph_tl:nnn{graph}{#1}{outdegree}} {#2} {\int_eval:n { - \prop_get:cn {\__graph_tl:nnn{graph}{#1}{outdegree}} {#2} + 1 + \prop_item:cn {\__graph_tl:nnn{graph}{#1}{outdegree}} {#2} + 1 }} %%% increment incoming degree of vertex #3 % \use:c{prop_#5put:cnf} {\__graph_tl:nnn{graph}{#1}{indegree}} {#3} {\int_eval:n { - \prop_get:cn {\__graph_tl:nnn{graph}{#1}{indegree}} {#3} + 1 + \prop_item:cn {\__graph_tl:nnn{graph}{#1}{indegree}} {#3} + 1 }} } @@ -496,14 +496,14 @@ % \use:c{prop_#4put:cnf} {\__graph_tl:nnn{graph}{#1}{outdegree}} {#2} {\int_eval:n { - \prop_get:cn {\__graph_tl:nnn{graph}{#1}{outdegree}} {#2} - 1 + \prop_item:cn {\__graph_tl:nnn{graph}{#1}{outdegree}} {#2} - 1 }} %%% decrement indegree of vertex #3 % \use:c{prop_#4put:cnf} {\__graph_tl:nnn{graph}{#1}{indegree}} {#3} {\int_eval:n { - \prop_get:cn {\__graph_tl:nnn{graph}{#1}{indegree}} {#3} - 1 + \prop_item:cn {\__graph_tl:nnn{graph}{#1}{indegree}} {#3} - 1 }} %%% actually remove edge @@ -831,7 +831,7 @@ % % \begin{macrocode} \cs_new:Nn \graph_get_outdegree:Nn { - \prop_get:cn {\__graph_tl:nnn{graph}{#1}{outdegree}} {#2} + \prop_item:cn {\__graph_tl:nnn{graph}{#1}{outdegree}} {#2} } % \end{macrocode} % @@ -845,7 +845,7 @@ % % \begin{macrocode} \cs_new:Nn \graph_get_indegree:Nn { - \prop_get:cn {\__graph_tl:nnn{graph}{#1}{indegree}} {#2} + \prop_item:cn {\__graph_tl:nnn{graph}{#1}{indegree}} {#2} } % \end{macrocode} % @@ -1357,8 +1357,8 @@ % \graph_map_outgoing_edges_inline:NVn #1 \l__graph_topo_key_tl { \prop_put:cnf {l__graph_tmp_indeg_(\int_use:N\g__graph_nesting_depth_int)_prop} {##2} - {\int_eval:n {\prop_get:cn {l__graph_tmp_indeg_(\int_use:N\g__graph_nesting_depth_int)_prop} {##2} - 1}} - \int_compare:nT {\prop_get:cn {l__graph_tmp_indeg_(\int_use:N\g__graph_nesting_depth_int)_prop} {##2} = 0} { + {\int_eval:n {\prop_item:cn {l__graph_tmp_indeg_(\int_use:N\g__graph_nesting_depth_int)_prop} {##2} - 1}} + \int_compare:nT {\prop_item:cn {l__graph_tmp_indeg_(\int_use:N\g__graph_nesting_depth_int)_prop} {##2} = 0} { \prop_put:cnn {l__graph_source_vertices_(\int_use:N\g__graph_nesting_depth_int)_prop} {##2} {} } } |