deltakit.core.decoding_graphs.vector_weights#
- deltakit.core.decoding_graphs.vector_weights(graph: NXDecodingGraph) defaultdict[tuple[float, ...], list[float]]#
Treat the edges of a graph as vectors and return a mapping of normalised vectors to a list of weights on those vectors.
- Parameters:
graph (NXDecodingGraph) – The edges on this graph represent vectors.
- Return type:
DefaultDict[Tuple[float, …], List[float]]