hgraph-1.10.0.0: Tools for working on (di)graphs.
Safe HaskellSafe-Inferred
LanguageHaskell2010

HGraph.Undirected.Layout.SpringModel

Documentation

setup :: UndirectedGraph g => Double -> Double -> Double -> Double -> g a -> SpringModel g a Source #

step :: forall {g :: Type -> Type} {a}. Adjacency g => Double -> SpringModel g a -> SpringModel g a Source #

positions :: forall {g :: Type -> Type} {a}. SpringModel g a -> [(a, V2 Double)] Source #