Commit 66def5aa authored by delanoe's avatar delanoe

Just exporting one function.

parent e59c3846
{-# LANGUAGE Arrows, NoMonomorphismRestriction #-}
module Data.GexfParser where
module Data.GexfParser (importGraphFromGexf)
where
import Text.XML.HXT.Core
import qualified Data.Graph as DataGraph
......@@ -65,8 +66,8 @@ importGraph file = do
--importGraph' :: FilePath -> IO [(Int, [Int])]
importGraph' file = runX (readDocument [withValidate no] file >>> parseGraph)
importGraph'' :: FilePath -> IO [FGL.LEdge Double]
importGraph'' file = Prelude.map (\(a,b) -> (read a, read b, 1)) <$> edges <$> head <$> importGraph' file
importGraphFromGexf :: FilePath -> IO [FGL.LEdge Double]
importGraphFromGexf file = Prelude.map (\(a,b) -> (read a, read b, 1)) <$> edges <$> head <$> importGraph' file
--main :: IO()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment