java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.multisource.clustering.Network
All Implemented Interfaces:
Serializable

class Network extends Object implements Serializable
Network
Author:
Ludo Waltman, Nees Jan van Eck , 08/30/15
  • 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
  • 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

      public static Network load(String fileName) throws ClassNotFoundException, IOException
      Throws:
      ClassNotFoundException
      IOException
    • save

      public void save(String fileName) throws IOException
      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

      public Network createNetworkWithoutNodeWeights()
    • createNetworkWithoutEdgeWeights

      public Network createNetworkWithoutEdgeWeights()
    • createNetworkWithoutNodeAndEdgeWeights

      public Network createNetworkWithoutNodeAndEdgeWeights()
    • createNormalizedNetwork1

      public Network createNormalizedNetwork1()
    • createNormalizedNetwork2

      public Network createNormalizedNetwork2()
    • createPrunedNetwork

      public Network createPrunedNetwork(int nEdges)
    • createPrunedNetwork

      public Network createPrunedNetwork(int nEdges, Random random)
    • createSubnetwork

      public Network createSubnetwork(int[] node)
    • createSubnetwork

      public Network createSubnetwork(boolean[] nodeInSubnetwork)
    • createSubnetwork

      public Network createSubnetwork(Clustering clustering, int cluster)
    • createSubnetworks

      public Network[] createSubnetworks(Clustering clustering)
    • createSubnetworkLargestComponent

      public Network createSubnetworkLargestComponent()
    • createReducedNetwork

      public Network createReducedNetwork(Clustering clustering)
    • identifyComponents

      public Clustering 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)