Class Network
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.multisource.clustering.Network
- All Implemented Interfaces:
Serializable
Network
- Author:
- Ludo Waltman, Nees Jan van Eck , 08/30/15
-
Field Summary
Modifier and TypeFieldDescriptionprotected double[]
protected int[]
protected int
protected int[]
protected int
protected double[]
private static final long
protected double
-
Constructor Summary
ModifierConstructorDescriptionprivate
Network()
Network
(int nNodes, double[] nodeWeight, int[][] edge) Network
(int nNodes, double[] nodeWeight, int[][] edge, double[] edgeWeight) Network
(int nNodes, double[] nodeWeight, int[] firstNeighborIndex, int[] neighbor) Network
(int nNodes, double[] nodeWeight, int[] firstNeighborIndex, int[] neighbor, double[] edgeWeight) Network
(int nNodes, int[][] edge) Network
(int nNodes, int[][] edge, double[] edgeWeight) Network
(int nNodes, int[] firstNeighborIndex, int[] neighbor) Network
(int nNodes, int[] firstNeighborIndex, int[] neighbor, double[] edgeWeight) -
Method Summary
Modifier and TypeMethodDescriptioncreatePrunedNetwork
(int nEdges) createPrunedNetwork
(int nEdges, Random random) createReducedNetwork
(Clustering clustering) createSubnetwork
(boolean[] nodeInSubnetwork) createSubnetwork
(int[] node) createSubnetwork
(Clustering clustering, int cluster) private Network
createSubnetwork
(Clustering clustering, int cluster, int[] node, int[] subnetworkNode, int[] subnetworkNeighbor, double[] subnetworkEdgeWeight) Network[]
createSubnetworks
(Clustering clustering) private double
generateRandomNumber
(int node1, int node2, int[] nodePermutation) int[][]
getEdges()
int[]
getEdges
(int node) int[][]
double[]
double[]
getEdgeWeights
(int node) double[][]
int
int
getNEdges
(int node) int[]
int
double
getNodeWeight
(int node) double[]
double
double
getTotalEdgeWeight
(int node) double[]
double
double
static Network
void
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
nNodes
protected int nNodes -
nEdges
protected int nEdges -
nodeWeight
protected double[] nodeWeight -
firstNeighborIndex
protected int[] firstNeighborIndex -
neighbor
protected int[] neighbor -
edgeWeight
protected double[] edgeWeight -
totalEdgeWeightSelfLinks
protected double totalEdgeWeightSelfLinks
-
-
Constructor Details
-
Network
public Network(int nNodes, int[][] edge) -
Network
public Network(int nNodes, double[] nodeWeight, int[][] edge) -
Network
public Network(int nNodes, int[][] edge, double[] edgeWeight) -
Network
public Network(int nNodes, double[] nodeWeight, int[][] edge, double[] edgeWeight) -
Network
public Network(int nNodes, int[] firstNeighborIndex, int[] neighbor) -
Network
public Network(int nNodes, double[] nodeWeight, int[] firstNeighborIndex, int[] neighbor) -
Network
public Network(int nNodes, int[] firstNeighborIndex, int[] neighbor, double[] edgeWeight) -
Network
public Network(int nNodes, double[] nodeWeight, int[] firstNeighborIndex, int[] neighbor, double[] edgeWeight) -
Network
private Network()
-
-
Method Details
-
load
- Throws:
ClassNotFoundException
IOException
-
save
- Throws:
IOException
-
getNNodes
public int getNNodes() -
getTotalNodeWeight
public double getTotalNodeWeight() -
getNodeWeights
public double[] getNodeWeights() -
getNodeWeight
public double getNodeWeight(int node) -
getNEdges
public int getNEdges() -
getNEdges
public int getNEdges(int node) -
getNEdgesPerNode
public int[] getNEdgesPerNode() -
getEdges
public int[][] getEdges() -
getEdges
public int[] getEdges(int node) -
getEdgesPerNode
public int[][] getEdgesPerNode() -
getTotalEdgeWeight
public double getTotalEdgeWeight() -
getTotalEdgeWeight
public double getTotalEdgeWeight(int node) -
getTotalEdgeWeightPerNode
public double[] getTotalEdgeWeightPerNode() -
getEdgeWeights
public double[] getEdgeWeights() -
getEdgeWeights
public double[] getEdgeWeights(int node) -
getEdgeWeightsPerNode
public double[][] getEdgeWeightsPerNode() -
getTotalEdgeWeightSelfLinks
public double getTotalEdgeWeightSelfLinks() -
createNetworkWithoutNodeWeights
-
createNetworkWithoutEdgeWeights
-
createNetworkWithoutNodeAndEdgeWeights
-
createNormalizedNetwork1
-
createNormalizedNetwork2
-
createPrunedNetwork
-
createPrunedNetwork
-
createSubnetwork
-
createSubnetwork
-
createSubnetwork
-
createSubnetworks
-
createSubnetworkLargestComponent
-
createReducedNetwork
-
identifyComponents
-
generateRandomNumber
private double generateRandomNumber(int node1, int node2, int[] nodePermutation) -
createSubnetwork
private Network createSubnetwork(Clustering clustering, int cluster, int[] node, int[] subnetworkNode, int[] subnetworkNeighbor, double[] subnetworkEdgeWeight)
-