Graph.from_dict¶
- classmethod Graph.from_dict(*, hyper_edge_set_dict, n_addresses)[source]¶
Builds a graph from a dictionary of
energnn.graph.HyperEdgeSetand a registry.- Parameters:
hyper_edge_set_dict (dict[str, HyperEdgeSet]) – Dictionary of hyper-edge sets contained in the graph.
n_addresses (ndarray) – Number of unique addresses that appear in all the hyper-edge sets.
- Returns:
Graph that contains both the hyper-edge sets and the registry.
- Return type: