Class ISOMLayout<V,E>
java.lang.Object
edu.uci.ics.jung.algorithms.layout.AbstractLayout<V,E>
edu.uci.ics.jung.algorithms.layout.ISOMLayout<V,E>
- All Implemented Interfaces:
com.google.common.base.Function<V,Point2D>, Layout<V, E>, IterativeContext, Function<V, Point2D>
Implements a self-organizing map layout algorithm, based on Meyer's
self-organizing graph methods.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate doubleprotected GraphElementAccessor<V, E> private intprivate doubleprotected com.google.common.cache.LoadingCache<V, ISOMLayout.ISOMVertexData> private intprivate doubleprivate intprivate intprivate intprivate StringFields inherited from class AbstractLayout
graph, initialized, locations, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidadjust()private voidadjustVertex(V v, Point2D tempXYD) booleandone()Returnstrueif the vertex positions are no longer being updated.protected ISOMLayout.ISOMVertexDatavoidInitializes fields in the node that may not have been set during the constructor.booleanThis one is an incremental visualization.voidreset()Resets the layout iteration count to 0, which allows the layout algorithm to continue updating vertex positions.voidstep()Advances the current positions of the graph elements.private voidMethods inherited from class AbstractLayout
apply, getGraph, getSize, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setInitializer, setLocation, setLocation, setSizeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Function
equals
-
Field Details
-
isomVertexData
-
maxEpoch
private int maxEpoch -
epoch
private int epoch -
radiusConstantTime
private int radiusConstantTime -
radius
private int radius -
minRadius
private int minRadius -
adaption
private double adaption -
initialAdaption
private double initialAdaption -
minAdaption
private double minAdaption -
elementAccessor
-
coolingFactor
private double coolingFactor -
queue
-
status
-
-
Constructor Details
-
ISOMLayout
-
-
Method Details
-
getStatus
- Returns:
- the current number of epochs and execution status, as a string.
-
initialize
public void initialize()Description copied from interface:LayoutInitializes fields in the node that may not have been set during the constructor. Must be called before the iterations begin.- Specified by:
initializein interfaceLayout<V,E>
-
step
public void step()Advances the current positions of the graph elements.- Specified by:
stepin interfaceIterativeContext
-
adjust
private void adjust() -
updateParameters
private void updateParameters() -
adjustVertex
-
getISOMVertexData
-
isIncremental
public boolean isIncremental()This one is an incremental visualization.- Returns:
trueis the layout algorithm is incremental,falseotherwise
-
done
public boolean done()Returnstrueif the vertex positions are no longer being updated. CurrentlyISOMLayoutstops updating vertex positions after a certain number of iterations have taken place.- Specified by:
donein interfaceIterativeContext- Returns:
trueif the vertex position updates have stopped,falseotherwise
-
reset
-