index
module components.merging.sputlink.utils
CompositionTable
class CompositionTable
Inherits from: object
Implements the 28 by 28 composition table. Takes care of loading
the table from file and retrieving compositions from the table.
Public Functions
__init__(self, compositions_file)
Read the compositions file and load all compositions into the
data instance variable.
compose_rels(self, rel1, rel2)
Looks up the composition of rel1 and rel2 and returns it.
pp(self, filename)
Print an html table to filename.
module functions
compare_id(a, b)
html_graph_prefix(fh)
intersect_lists(l1, l2)
Returns the intersection of two lists. The result will not contain
duplicate elements and list order is not preserved.
intersect_relations(rels1, rels2)
Returns the intersection of two relation sets. Returns None if both
of the two sets are None.
massage(str)
Prepare the string representation of a relation set for printing in
html.