com.alee.utils.sort
Interface GraphDataProvider<T>


public interface GraphDataProvider<T>

Simple graph structure provider for topological sorting.

Author:
Mikle Garin

Method Summary
 java.util.List<T> getChildren(T data)
          Returns child data for the specified data.
 java.util.List<T> getRoots()
          Returns data for graph root nodes.
 

Method Detail

getRoots

java.util.List<T> getRoots()
Returns data for graph root nodes.

Returns:
data for graph root nodes

getChildren

java.util.List<T> getChildren(T data)
Returns child data for the specified data.

Parameters:
data - data to retrieve child data for
Returns:
child data for the specified data