I have imported a spreadsheet from Excel that I want to use as an adjacency matrix. I want to use this matrix as the argument in
WeightedAdjacencyGraph, so I have entered infinity symbols in the matrix where there are no edges linking two vertices.
However edges keep appearing in the graph with weight infinity assigned to them. The infinity symbol is imported from Excel as part of the spreadsheet.
If I use the spreadsheet as a list of lists it will construct a graph, but with unwanted edges. When I put the data in
MatrixForm, it returns an error saying it is a not a non empty square matrix.
Any ideas where I'm going wrong?