suvi.api.alg
Interface GraphLayoutAlg

All Superinterfaces:
GraphLayoutAttrConsumer
All Known Implementing Classes:
GraphLayoutAlgChassis, GraphLayoutAlgContract

public interface GraphLayoutAlg
extends GraphLayoutAttrConsumer

Abstract interface for graph layout algorithms. This interface is designed to be able to describe many different graph layout algorithms.

Note that if the hashCode() values returned by the nodes and edges of the given Graph-implementation may vary between runs of the algorithm, then the results produced by a layout algorithm may also vary.


Method Summary
 GraphLayout layout(javautils.graph.adt.Graph graph, GraphLayoutAttrMap attrMap)
           return layout(graph, attrMap, GraphLayoutAlgProgressPolicy.NULL_PROGRESS_POLICY);
 GraphLayout layout(javautils.graph.adt.Graph graph, GraphLayoutAttrMap attrMap, GraphLayoutAlgProgressPolicy progressPolicy)
          A layout for the specified graph computed according to the specified layout attributes.
 
Methods inherited from interface suvi.api.alg.attr.GraphLayoutAttrConsumer
defaultAttrs
 

Method Detail

layout

public GraphLayout layout(javautils.graph.adt.Graph graph,
                          GraphLayoutAttrMap attrMap)
 return layout(graph,
               attrMap,
               GraphLayoutAlgProgressPolicy.NULL_PROGRESS_POLICY);
 


layout

public GraphLayout layout(javautils.graph.adt.Graph graph,
                          GraphLayoutAttrMap attrMap,
                          GraphLayoutAlgProgressPolicy progressPolicy)

A layout for the specified graph computed according to the specified layout attributes. Calls the progress policy to report progress events.