gsnn.simulate.graph_comparison

Graph comparison utilities for evaluating shared dependencies between graphs.

Classes

Any(*args, **kwargs)

Special type indicating an unconstrained type.

GraphComparison(reference_edge_index_dict)

A class for comparing edge index dictionaries to evaluate shared dependencies between input and output nodes.

defaultdict

defaultdict(default_factory=None, /, [...]) --> dict with default factory

class gsnn.simulate.graph_comparison.GraphComparison(reference_edge_index_dict: Dict[Tuple[str, str, str], Any])[source]

Bases: object

A class for comparing edge index dictionaries to evaluate shared dependencies between input and output nodes.

The edge_index_dict is expected to have keys of the form: - (input, to, function) - (function, to, function) - (function, to, output)

get_dependency_details(comparison_edge_index_dict: Dict[Tuple[str, str, str], Any]) Dict[str, Set][source]

Get detailed information about the dependencies comparison.

Parameters:

comparison_edge_index_dict – The graph to compare against the reference

Returns:

Dictionary with detailed dependency sets