graph-rewriting-layout-0.5.6: Force-directed node placement intended for incremental graph drawing

Safe HaskellNone
LanguageHaskell98

GraphRewriting.Layout.Wrapper

Synopsis

Documentation

data Wrapper w Source #

Wraps a value of type w, augmenting it with layout information

Constructors

Wrapper 

Fields

Instances

View v n => View v (Wrapper n) Source # 

Methods

inspect :: Wrapper n -> v #

update :: v -> Wrapper n -> Wrapper n #

adjust :: (v -> v) -> Wrapper n -> Wrapper n #

View Position (Wrapper n) Source # 
View Rotation (Wrapper n) Source # 
PortSpec n => PortSpec (Wrapper n) Source # 

Methods

portSpec :: Wrapper n -> [(Vector2, Vector2)] Source #

wrapGraph :: Graph n -> Graph (Wrapper n) Source #

Wraps the nodes of a graph, augmenting them with layout information

module Data.View