[Haskell-cafe] Possible FGL bug

David Menendez dave at zednenem.com
Wed Nov 25 10:58:47 EST 2009


On Wed, Nov 25, 2009 at 6:28 AM, Neil Brown <nccb2 at kent.ac.uk> wrote:
> It looks like a bug to me.  Can you show an exact list of nodes and edges
> that is causing mkGraph to fail?  Or is that what you have displayed, and I
> can't parse it properly?

>From what I can tell, insEdge inserts an edge between two nodes which
are already in the graph. The code is calling insEdge on
arbitrarily-labeled nodes, which may not exist in the graph.

Instead of picking arbitrary node labels, try selecting arbitrary
elements from the list of node labels.

-- 
Dave Menendez <dave at zednenem.com>
<http://www.eyrie.org/~zednenem/>


More information about the Haskell-Cafe mailing list