return concrete type for AdjacencyMatrix

This commit is contained in:
filifa
2025-05-03 23:21:15 -04:00
parent a252631cc9
commit 59eb2ff72c

View File

@@ -106,7 +106,7 @@ func (g *AbsorbingMarkovChain) canBeAbsorbed(u graph.Node, absorbingNodes []grap
return false
}
func (g *AbsorbingMarkovChain) AdjacencyMatrix() mat.Matrix {
func (g *AbsorbingMarkovChain) AdjacencyMatrix() *mat.Dense {
adj := simple.NewDirectedMatrix(g.Nodes().Len(), 0, 0, 0)
for edges := g.WeightedEdges(); edges.Next(); {
e := edges.WeightedEdge()