cotengra.pathfinders.path_igraph#

igraph based pathfinders.

Module Contents#

Functions#

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

Convert opt_einsum format to igraph graph incl. weights.

igraph_subgraph_find_membership(inputs, output, size_dict)

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

A single, repeatable, igraph trial run. This is for igraph methods that

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

Attributes#

cotengra.pathfinders.path_igraph.oe_to_igraph(inputs, output, size_dict, weight_nodes='const', weight_edges='log')[source]#

Convert opt_einsum format to igraph graph incl. weights.

cotengra.pathfinders.path_igraph.igraph_subgraph_find_membership(inputs, output, size_dict, weight_nodes='const', weight_edges='log', method='spinglass', parts=2, seed=None, **igraph_opts)[source]#
cotengra.pathfinders.path_igraph.igraph_to_tree#
cotengra.pathfinders.path_igraph.trial_igraph_partition[source]#
cotengra.pathfinders.path_igraph.trial_igraph_dendrogram(inputs, output, size_dict, weight_nodes='const', weight_edges='log', random_strength=0.1, method='betweenness', **kwargs)[source]#

A single, repeatable, igraph trial run. This is for igraph methods that naturally produce a dendrogram (== ssa_path).

cotengra.pathfinders.path_igraph.trial_spinglass(inputs, output, size_dict, icool_fact=0.01, igamma=0.01, **kwargs)[source]#