de.aitools.iv.graphdrawing.datastructures.graph
Class AdjacencyMatrixComp
java.lang.Object
de.aitools.iv.graphdrawing.datastructures.graph.AdjacencyMatrixComp
- All Implemented Interfaces:
- AdjacencyMatrix, Graph
public class AdjacencyMatrixComp
- extends java.lang.Object
- implements AdjacencyMatrix
Constructor Summary |
AdjacencyMatrixComp(int vertexCount,
double diagonalValue,
double missingValue)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdjacencyMatrixComp
public AdjacencyMatrixComp(int vertexCount,
double diagonalValue,
double missingValue)
clone
public java.lang.Object clone()
- Specified by:
clone
in interface AdjacencyMatrix
- Overrides:
clone
in class java.lang.Object
clone
public void clone(AdjacencyMatrix o)
- Specified by:
clone
in interface AdjacencyMatrix
setThreshold
public void setThreshold(double threshold)
- Specified by:
setThreshold
in interface AdjacencyMatrix
getThreshold
public double getThreshold()
- Specified by:
getThreshold
in interface AdjacencyMatrix
getDiagonalValue
public double getDiagonalValue()
- Specified by:
getDiagonalValue
in interface AdjacencyMatrix
setDiagonalValue
public void setDiagonalValue(double diagonalValue)
getMissingValue
public double getMissingValue()
- Specified by:
getMissingValue
in interface AdjacencyMatrix
setMissingValue
public void setMissingValue(double missingValue)
setEdgeWeight
public void setEdgeWeight(int vertexFrom,
int vertexTo,
double weight)
- Specified by:
setEdgeWeight
in interface AdjacencyMatrix
addEdgeWeight
public void addEdgeWeight(int vertexFrom,
int vertexTo,
double weight)
- Specified by:
addEdgeWeight
in interface AdjacencyMatrix
getEdgeWeight
public double getEdgeWeight(int vertexFrom,
int vertexTo)
- Specified by:
getEdgeWeight
in interface AdjacencyMatrix
updateMaxWeight
public void updateMaxWeight()
- Specified by:
updateMaxWeight
in interface AdjacencyMatrix
setInverseEdgeWeight
public void setInverseEdgeWeight(int vertexFrom,
int vertexTo,
double weight)
- Specified by:
setInverseEdgeWeight
in interface AdjacencyMatrix
getInverseEdgeWeight
public double getInverseEdgeWeight(int vertexFrom,
int vertexTo)
- Specified by:
getInverseEdgeWeight
in interface AdjacencyMatrix
getVertexCount
public int getVertexCount()
- Specified by:
getVertexCount
in interface AdjacencyMatrix
- Specified by:
getVertexCount
in interface Graph
getSumOfEdgeWeights
public double getSumOfEdgeWeights()
- Specified by:
getSumOfEdgeWeights
in interface AdjacencyMatrix
getSumOfEdgeWeights
public double getSumOfEdgeWeights(int[] vertexIndices)
- Specified by:
getSumOfEdgeWeights
in interface AdjacencyMatrix
getMaxValue
public double getMaxValue()
- Specified by:
getMaxValue
in interface AdjacencyMatrix
getAverage
public double getAverage()
- Specified by:
getAverage
in interface AdjacencyMatrix
getDeviation
public double getDeviation()
- Specified by:
getDeviation
in interface AdjacencyMatrix
getDeviation
public double getDeviation(int[] vertexIndices)
- Specified by:
getDeviation
in interface AdjacencyMatrix
getSimpleDeviation
public double getSimpleDeviation()
- Specified by:
getSimpleDeviation
in interface AdjacencyMatrix
getSimpleDeviation
public double getSimpleDeviation(int[] vertexIndices)
- Specified by:
getSimpleDeviation
in interface AdjacencyMatrix
getSumOfAdjacentEdgeWeights
public double getSumOfAdjacentEdgeWeights(int[] vertexIndices)
- Specified by:
getSumOfAdjacentEdgeWeights
in interface AdjacencyMatrix
getAdjacentVertices
public int[] getAdjacentVertices(int vertex)
- Specified by:
getAdjacentVertices
in interface AdjacencyMatrix
getEdges
public int[][] getEdges()
- Specified by:
getEdges
in interface AdjacencyMatrix
getEdgeCount
public int getEdgeCount(int vertex)
- Specified by:
getEdgeCount
in interface AdjacencyMatrix
getEdgeCount
public int getEdgeCount(int[] vertices)
- Specified by:
getEdgeCount
in interface AdjacencyMatrix
getEdgeCount
public int getEdgeCount()
- Specified by:
getEdgeCount
in interface AdjacencyMatrix
- Specified by:
getEdgeCount
in interface Graph
setDirty
public void setDirty(int vertex)
createUndirectedGraph
public UndirectedGraph createUndirectedGraph(UndirectedGraph g)
- Specified by:
createUndirectedGraph
in interface AdjacencyMatrix
normalize
public void normalize()
- Specified by:
normalize
in interface AdjacencyMatrix
normalize2
public double normalize2()
- Specified by:
normalize2
in interface AdjacencyMatrix
isNormalized
public boolean isNormalized()
- Specified by:
isNormalized
in interface AdjacencyMatrix
setNormalized
public void setNormalized(boolean normalized)
- Specified by:
setNormalized
in interface AdjacencyMatrix
isCoherent
public boolean isCoherent()
- Specified by:
isCoherent
in interface AdjacencyMatrix
edgeIterator
public java.util.Iterator edgeIterator()
- Specified by:
edgeIterator
in interface Graph
vertexIterator
public java.util.Iterator vertexIterator()
- Specified by:
vertexIterator
in interface Graph
getSumOfEdgeWeights
public double getSumOfEdgeWeights(double threshold)
- Specified by:
getSumOfEdgeWeights
in interface Graph
getSumOfEdgeWeights
public double getSumOfEdgeWeights(int[] vertices,
double threshold)
- Specified by:
getSumOfEdgeWeights
in interface Graph