public class NetworkFileBackedWrapper
extends java.lang.Object
Constructor and Description |
---|
NetworkFileBackedWrapper(NetworkFileBackedWrapper copy)
Copy constructor of a NetworkFileBackedWrapper.
|
NetworkFileBackedWrapper(java.lang.String fileName,
int cutoff,
int chuncks,
double coefs,
boolean createPartition)
Constructs a new NetworkFileBackedWrapper with the given parameters
|
Modifier and Type | Method and Description |
---|---|
int |
getChuncks() |
double |
getCoefs() |
int |
getCutoff() |
java.lang.String |
getFileName() |
Network |
getNetwork() |
java.lang.String |
getOutputFileName() |
NetworkPartition |
getPartition() |
void |
networkClear()
This method should be called when the ranking file is no longer needed.
|
void |
networkToTSVfinal()
Writes the current ranking to the outputFileName.
|
void |
setChuncks(int chuncks) |
void |
setCoefs(double coefs) |
void |
setCutoff(int cutoff) |
void |
setFileName(java.lang.String fileName) |
void |
setNetwork(Network network) |
void |
setOutputFileName(java.lang.String outputFileName) |
void |
setPartition(NetworkPartition partition) |
public NetworkFileBackedWrapper(java.lang.String fileName, int cutoff, int chuncks, double coefs, boolean createPartition)
fileName
- ranking file to read fromcutoff
- cutoff value to determine how many links at the the top of the ranking should be re-rankedchuncks
- size of the partitions, ignored if createPartition is falsecoefs
- weights of the partitions, ignored if createPartition is falsecreatePartition
- should the network be partitionedpublic NetworkFileBackedWrapper(NetworkFileBackedWrapper copy)
copy
- The ranking file representation to be copiedpublic void networkClear()
public void networkToTSVfinal()
public int getCutoff()
public void setCutoff(int cutoff)
public int getChuncks()
public void setChuncks(int chuncks)
public NetworkPartition getPartition()
public void setPartition(NetworkPartition partition)
public java.lang.String getOutputFileName()
public void setOutputFileName(java.lang.String outputFileName)
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public Network getNetwork()
public void setNetwork(Network network)
public double getCoefs()
public void setCoefs(double coefs)