public WE getMinimumWeightEdge()

in src/main/java/org/apache/commons/graph/spanning/SuperVertex.java [84:98]


    public WE getMinimumWeightEdge()
    {
        boolean found = false;
        WE edge = null;
        while ( !found && !orderedEdges.isEmpty() )
        {
            edge = orderedEdges.pollFirst();
            VertexPair<V> pair = graph.getVertices( edge );
            if ( !vertices.contains( pair.getHead() ) || !vertices.contains( pair.getTail() ) )
            {
                found = true;
            }
        }
        return edge;
    }