Class MinimumSpanningTreeIterator

java.lang.Object
org.graph4j.spanning.WeightedSpanningTreeIterator
org.graph4j.spanning.MinimumSpanningTreeIterator
All Implemented Interfaces:
Iterator<Collection<Edge>>

public class MinimumSpanningTreeIterator extends WeightedSpanningTreeIterator
Iterates over the minimum spanning trees of a weighted graph. The iterator returns the collection of edges of a spanning tree, which can be used to create the actual tree with the method Graph.subgraph(java.util.Collection).
Author:
Cristian Frăsinaru
See Also:
  • Constructor Details

    • MinimumSpanningTreeIterator

      public MinimumSpanningTreeIterator(Graph graph)
      Creates an iterator over the minimum spanning trees of a weighted graph.
      Parameters:
      graph - the input graph.
  • Method Details