Skip to content

Prim.java #2

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. any graph it has cicle in prim.java
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?



Please provide any additional information below.

add to prim.java after "Graph.Edge e = edgesAvailable.remove();"
 this "while(!unvisited.contains(e.getToVertex()) && !unvisited.contains(e.getFromVertex())){
                e = edgesAvailable.remove();
            }"

bye!

Original issue reported on code.google.com by alejandr...@gmail.com on 6 Dec 2012 at 10:09

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions