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.
- Author:
- Yan Biao Boey
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GraphElementAccessor
<V, E> protected com.google.common.cache.LoadingCache
<V, ISOMLayout.ISOMVertexData> Fields inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout
graph, initialized, locations, size
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
done()
Returnstrue
if the vertex positions are no longer being updated.protected ISOMLayout.ISOMVertexData
void
Initializes fields in the node that may not have been set during the constructor.boolean
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
apply, getGraph, getSize, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setInitializer, setLocation, setLocation, setSize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.base.Function
equals
-
Field Details
-
isomVertexData
-
elementAccessor
-
-
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: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 interfaceLayout<V,
E>
-
step
public void step()Advances the current positions of the graph elements.- Specified by:
step
in interfaceIterativeContext
-
getISOMVertexData
-
isIncremental
public boolean isIncremental()This one is an incremental visualization.- Returns:
true
is the layout algorithm is incremental,false
otherwise
-
done
public boolean done()Returnstrue
if the vertex positions are no longer being updated. CurrentlyISOMLayout
stops updating vertex positions after a certain number of iterations have taken place.- Specified by:
done
in interfaceIterativeContext
- 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.
-