edu.uci.ics.jung.algorithms.layout
Class ISOMLayout<V,E>

java.lang.Object
  extended by edu.uci.ics.jung.algorithms.layout.AbstractLayout<V,E>
      extended by edu.uci.ics.jung.algorithms.layout.ISOMLayout<V,E>
All Implemented Interfaces:
Layout<V,E>, IterativeContext, org.apache.commons.collections15.Transformer<V,Point2D>

public class ISOMLayout<V,E>
extends AbstractLayout<V,E>
implements IterativeContext

Implements a self-organizing map layout algorithm, based on Meyer's self-organizing graph methods.

Author:
Yan Biao Boey

Nested Class Summary
protected static class ISOMLayout.ISOMVertexData
           
 
Field Summary
protected  GraphElementAccessor<V,E> elementAccessor
           
 
Fields inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout
graph, initialized, locations, size
 
Constructor Summary
ISOMLayout(Graph<V,E> g)
          Creates an ISOMLayout instance for the specified graph g.
 
Method Summary
 boolean done()
          Returns true if the vertex positions are no longer being updated.
protected  ISOMLayout.ISOMVertexData getISOMVertexData(V v)
           
 String getStatus()
          Returns the current number of epochs and execution status, as a string.
 void initialize()
          Initializes fields in the node that may not have been set during the constructor.
 boolean isIncremental()
          This one is an incremental visualization.
 void reset()
          Resets the layout iteration count to 0, which allows the layout algorithm to continue updating vertex positions.
 void step()
          Advances the current positions of the graph elements.
 
Methods inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout
getGraph, getSize, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setInitializer, setLocation, setLocation, setSize, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementAccessor

protected GraphElementAccessor<V,E> elementAccessor
Constructor Detail

ISOMLayout

public ISOMLayout(Graph<V,E> g)
Creates an ISOMLayout instance for the specified graph g.

Parameters:
g -
Method Detail

getStatus

public String getStatus()
Returns the current number of epochs and execution status, as a string.


initialize

public void initialize()
Description copied from interface: Layout
Initializes fields in the node that may not have been set during the constructor. Must be called before the iterations begin.

Specified by:
initialize in interface Layout<V,E>

step

public void step()
Advances the current positions of the graph elements.

Specified by:
step in interface IterativeContext

getISOMVertexData

protected ISOMLayout.ISOMVertexData getISOMVertexData(V v)

isIncremental

public boolean isIncremental()
This one is an incremental visualization.

Returns:
true is the layout algorithm is incremental, false otherwise

done

public boolean done()
Returns true if the vertex positions are no longer being updated. Currently ISOMLayout stops updating vertex positions after a certain number of iterations have taken place.

Specified by:
done in interface IterativeContext
Returns:
true if the vertex position updates have stopped, false otherwise

reset

public void reset()
Resets the layout iteration count to 0, which allows the layout algorithm to continue updating vertex positions.

Specified by:
reset in interface Layout<V,E>


Copyright © 2009. All Rights Reserved.