diff options
author | Mike Gerwitz <gerwitm@lovullo.com> | 2016-07-05 16:14:15 -0400 |
---|---|---|
committer | Mike Gerwitz <gerwitm@lovullo.com> | 2016-07-06 00:16:12 -0400 |
commit | 641147cd8ff84755b640869e55c8be48cc566b31 (patch) | |
tree | b6ab16e5013b9bc308e8ef56b9455f5ccd992192 /src/graph.xsl | |
parent | bcf1e0457fc3f8a41d9c8e7692228b33649d777a (diff) | |
download | tame-641147cd8ff84755b640869e55c8be48cc566b31.tar.gz tame-641147cd8ff84755b640869e55c8be48cc566b31.tar.bz2 tame-641147cd8ff84755b640869e55c8be48cc566b31.zip |
graph:union normalize/dedupe test
This was already happening, but formally test and document it, since
it's a very useful property.
* src/graph.xsl (graph:union): Document dedupe behavior
* test/graph-test.xsl: Add test data
* test/graph.xspec: Add dedupe test for graph:union
Diffstat (limited to 'src/graph.xsl')
-rw-r--r-- | src/graph.xsl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/graph.xsl b/src/graph.xsl index 0a80861..6950c03 100644 --- a/src/graph.xsl +++ b/src/graph.xsl @@ -136,6 +136,11 @@ @end verbatim @caption{(G₁ ∪ G₂ ∪ G₃)} @end float + + This function also removes duplicate vertices and edges, + so it can be used with a single (or multiple) graphs to normalize + and tidy things up. + Any unknown XML nodes are removed. --> <function name="graph:union" as="element( preproc:sym-deps )*"> <param name="graphs" as="element( preproc:sym-deps )*" /> |