Work on perhaps replacing FGL with incidence vectors
This commit is contained in:
+5
-2
@@ -126,8 +126,11 @@ pointTowardsImpulse a b w =
|
||||
--
|
||||
|
||||
pairsToIncGraph :: Set.Set (Point2,Point2)
|
||||
-> (UV.Vector Point2, V.Vector [(Int,SimpleEdge)])
|
||||
pairsToIncGraph pairs = (inodes,incgraph)
|
||||
-> (UV.Vector Point2
|
||||
, V.Vector [(Int,SimpleEdge)]
|
||||
, [(Int,Int)]
|
||||
)
|
||||
pairsToIncGraph pairs = (inodes,incgraph,undefined)
|
||||
where
|
||||
incgraph = V.generate (length im) (\i -> im ^?! ix i)
|
||||
im = IM.fromListWith (<>) . fmap toedge $ Set.toList pairs
|
||||
|
||||
Reference in New Issue
Block a user