cotengra.pathfinders.path_labels#

Contraction tree finders using pure python ‘labels’ hypergraph partitioning.

Module Contents#

Functions#

pop_fact(p, parts, n, pop_small_bias, pop_big_bias)

labels_partition(inputs, output, size_dict[, ...])

param inputs:

Attributes#

cotengra.pathfinders.path_labels.pop_fact(p, parts, n, pop_small_bias, pop_big_bias)[source]#
cotengra.pathfinders.path_labels.labels_partition(inputs, output, size_dict, weight_nodes='linear', weight_edges='log', parts=2, maxiter=None, memory=0, pop_small_bias=1, pop_big_bias=1, pop_decay=1, con_pow=1, final_sweep=True, seed=None)[source]#
Parameters:
  • inputs

  • output

  • size_dict

  • weight_nodes

  • weight_edges

  • parts

  • maxiter

  • memory

  • pop_small_bias

  • pop_big_bias

  • pop_decay

  • con_pow

  • final_sweep

cotengra.pathfinders.path_labels.labels_to_tree#