commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Speranza (Created) (JIRA)" <>
Subject [jira] [Created] (SANDBOX-374) Kruskal's algorithm doesn't accept sparse graph
Date Mon, 30 Jan 2012 22:29:15 GMT
Kruskal's algorithm doesn't accept sparse graph

                 Key: SANDBOX-374
             Project: Commons Sandbox
          Issue Type: Bug
          Components: Graph
            Reporter: Marco Speranza

Hi guys,

I found a little problem into Kruskal's algorithm when the input graph is not connected and/or
 it's a graph without the edges.

I created a test case that produces the follow error:

Running org.apache.commons.graph.spanning.KruskalTestCase
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.096 sec <<< FAILURE!
Time elapsed: 0.007 sec  <<< ERROR!
        at java.util.AbstractQueue.remove(
        at org.apache.commons.graph.spanning.DefaultSpanningTreeAlgorithmSelector.applyingKruskalAlgorithm(


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message