Class SubGraphGenerator<N,​A>

  • Type Parameters:
    N -
    A -
    All Implemented Interfaces:
    org.api4.java.datastructure.graph.implicit.IGraphGenerator<N,​A>

    public class SubGraphGenerator<N,​A>
    extends java.lang.Object
    implements org.api4.java.datastructure.graph.implicit.IGraphGenerator<N,​A>
    This is a graph generator that takes another graph generator and generates its sub-graph under a given root node
    • Constructor Summary

      Constructors 
      Constructor Description
      SubGraphGenerator​(org.api4.java.datastructure.graph.implicit.IGraphGenerator<N,​A> actualGraphGenerator, N newRoot)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.api4.java.datastructure.graph.implicit.ISingleRootGenerator<N> getRootGenerator()  
      org.api4.java.datastructure.graph.implicit.ISuccessorGenerator<N,​A> getSuccessorGenerator()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubGraphGenerator

        public SubGraphGenerator​(org.api4.java.datastructure.graph.implicit.IGraphGenerator<N,​A> actualGraphGenerator,
                                 N newRoot)
    • Method Detail

      • getRootGenerator

        public org.api4.java.datastructure.graph.implicit.ISingleRootGenerator<N> getRootGenerator()
        Specified by:
        getRootGenerator in interface org.api4.java.datastructure.graph.implicit.IGraphGenerator<N,​A>
      • getSuccessorGenerator

        public org.api4.java.datastructure.graph.implicit.ISuccessorGenerator<N,​A> getSuccessorGenerator()
        Specified by:
        getSuccessorGenerator in interface org.api4.java.datastructure.graph.implicit.IGraphGenerator<N,​A>