Commit d278bef2 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6cee5548
......@@ -113,14 +113,16 @@ def StructureOf(node):
# TypologyOf returns topology encoding for internal structure of the tree.
# TypoEncodingOf returns topology encoding for internal structure of the tree.
#
# See top-level docstring for what topology is.
def TypologyOf(tree):
1/0
def TypoEncodingOf(tree):
treeStruct = StructureOf(tree)
# XXX convert struct -> topology
return topoEncode(treeStruct)
def topoEncode(treeStruct):
1/0
# ---- misc ----
......
......@@ -44,6 +44,8 @@ def test_topologyOf():
T([], B(7)),
T([], B(11))) ))
assert btree.TopoEncodingOf(t) == ((4,), (2,), ø(4), (6,10), ø(5?), ø(7), ø(11), x(5?))
"""
assert xbtree.TopologyOf(t) == ( (4,),
((2,), ()),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment