Class ConnectedComponentsData


  • public class ConnectedComponentsData
    extends Object
    Test data for ConnectedComponents programs.
    • Method Detail

      • getEnumeratingVertices

        public static final String getEnumeratingVertices​(int num)
      • getRandomOddEvenEdges

        public static final String getRandomOddEvenEdges​(int numEdges,
                                                         int numVertices,
                                                         long seed)
        Creates random edges such that even numbered vertices are connected with even numbered vertices and odd numbered vertices only with other odd numbered ones.