This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Monad.ST | |
import Data.Graph.Inductive | |
import qualified Data.Graph.Inductive.PatriciaTree as GP | |
import Data.Maybe | |
import Data.STRef | |
import Numeric.LinearAlgebra | |
import Numeric.LinearAlgebra.Devel | |
-- The result is wrapped in a Maybe just in case, the graph is not fully connected. | |
-- There is a function to test for connectivity in FGL, but in my use case, |
NewerOlder