torus is a surface having genus one
is there a possibility to “transform” a matrix (inheriting the input-output “weights”) into a graph object inheriting the matrix relations?
you can convert it to an edge-weighted graph using
WeightedAdjacencyGraph. This will give you a complete graph (a
Graph expression) in which each vertex is also connected to itself. I am not sure how much sense it makes treat this matrix as a graph, given the full connectivity.
Since you have a fully connected graph, it does not matter in your case, but be aware that
WeightedAdjacencyGraph represents missing edges with
Infinity, not with zero. This is somewhat annoying because it is inconsistent with
WeightedAdjacencyMatrix, which uses
Infinity does make sense in some (not all) applications, it is much more common to see data that uses 0.