def compact(self):
    '\n        _compact_\n\n        Compact the subscription list by aggregating the subscriptions where the nodes\n        share a list of dataset paths.\n        '
    bags = []
    baggedIndexes = set()
    for (i, subscriptionA) in enumerate(self._subList):
        if (i in baggedIndexes):
            continue
        bags.append([subscriptionA])
        for (j, subscriptionB) in enumerate(self._subList[(i + 1):], (i + 1)):
            if (j in baggedIndexes):
                continue
            if (subscriptionA.isEqualOptions(subscriptionB) and subscriptionA.isEqualDatasetPaths(subscriptionB)):
                bags[(- 1)].append(subscriptionB)
                baggedIndexes.add(j)
    newSubList = []
    for bag in bags:
        anchorSubscription = bag[0]
        for subscription in bag[1:]:
            anchorSubscription.addNodes(subscription)
        newSubList.append(anchorSubscription)
    self._subList = newSubList
_compact_

Compact the subscription list by aggregating the subscriptions where the nodes
share a list of dataset paths.
def compact(self):
    '\n        _compact_\n\n        Compact the subscription list by aggregating the subscriptions where the nodes\n        share a list of dataset paths.\n        '
    bags = []
    baggedIndexes = set()
    for (i, subscriptionA) in enumerate(self._subList):
        if (i in baggedIndexes):
            continue
        bags.append([subscriptionA])
        for (j, subscriptionB) in enumerate(self._subList[(i + 1):], (i + 1)):
            if (j in baggedIndexes):
                continue
            if (subscriptionA.isEqualOptions(subscriptionB) and subscriptionA.isEqualDatasetPaths(subscriptionB)):
                bags[(- 1)].append(subscriptionB)
                baggedIndexes.add(j)
    newSubList = []
    for bag in bags:
        anchorSubscription = bag[0]
        for subscription in bag[1:]:
            anchorSubscription.addNodes(subscription)
        newSubList.append(anchorSubscription)
    self._subList = newSubList