amnh / PCG

𝙋𝙝𝙮𝙡𝙤𝙜𝙚𝙣𝙚𝙩𝙞𝙘 𝘾𝙤𝙢𝙥𝙤𝙣𝙚𝙣𝙩 𝙂𝙧𝙖𝙥𝙝 ⸺ Haskell program and libraries for general phylogenetic graph search
28 stars 1 forks source link

Labeling issue with DOT output and the Build command when reading eNewick as input. #52

Closed recursion-ninja closed 7 years ago

recursion-ninja commented 7 years ago

The eNewick input labels mess things up and cause the eNewick label to potentially be duplicated in the graph when the BUILD command is used.

We just need to not take the parent decoration, and instead use Nothing or mempty depending on how flexible the type signature currently is.

recursion-ninja commented 7 years ago

I have corrected this defect in the ReferenceDAG module in the unfoldDAG and expandVertexMapping functions. unfoldDAG now requires a Monoid constraint for the node datum. Added an unsafe fromList function to circumvent the Monoid constraint when necissary.