graphite-0.8.0.0: Graphs and networks library

Safe HaskellNone
LanguageHaskell2010

Data.Graph.Read

Synopsis

Documentation

fromCsv :: Graph g => (Hashable v, Eq v, FromField v) => FilePath -> IO (Either String (g v ())) Source #

Read a UGraph from a CSV file | The line "1,2,3,4" translates to the list of edges | "(1 - 2), (1 - 3), (1 - 4)"

fromCsv' :: Graph g => (Hashable v, Eq v, FromField v) => FilePath -> IO (g v ()) Source #

Same as fromCsv but rise an exception when parsing fails