public class SomGraph extends Graph
Modifier and Type | Class and Description |
---|---|
static class |
SomGraph.NeighbourhoodMode |
Modifier and Type | Field and Description |
---|---|
private SomGraph.NeighbourhoodMode |
neighbourhoodMode |
private boolean |
skipInterpolationUnits |
adjList, edges, gsom, maximumEdgeWeight, metric, minimumEdgeWeight, mst
Constructor and Description |
---|
SomGraph(GrowingSOM gsom,
boolean skipInterpolationUnits,
SomGraph.NeighbourhoodMode neighbourhoodMode) |
Modifier and Type | Method and Description |
---|---|
protected List<Edge> |
calculateEdge() |
protected void |
createNodes(Unit[] units) |
void |
drawLine(Graphics2D g,
int unitWidth,
int unitHeight,
Edge e,
boolean weighting) |
protected ArrayList<Unit> |
getNeighbours(int horIndex,
int verIndex,
Unit[][] units) |
computeLineThickness, connectTwoNodes, getMaximumEdgeWeight, getMinimumEdgeWeight, getMinimumSpanningTree, getNode, insert, kruskalMST
private boolean skipInterpolationUnits
private SomGraph.NeighbourhoodMode neighbourhoodMode
public SomGraph(GrowingSOM gsom, boolean skipInterpolationUnits, SomGraph.NeighbourhoodMode neighbourhoodMode)
protected List<Edge> calculateEdge()
calculateEdge
in class Graph
protected ArrayList<Unit> getNeighbours(int horIndex, int verIndex, Unit[][] units)
getNeighbours
in class Graph
protected void createNodes(Unit[] units)
createNodes
in class Graph
public void drawLine(Graphics2D g, int unitWidth, int unitHeight, Edge e, boolean weighting)