public class GraphletCounterExtractor
extends java.lang.Object
Constructor and Description |
---|
GraphletCounterExtractor() |
GraphletCounterExtractor(Network network) |
Modifier and Type | Method and Description |
---|---|
double[] |
getFrequency()
Returns the relative graphlet frequencies associated with the network
|
int[] |
getGraphletCounts()
Returns the graphlet counts associated with the network
|
Network |
getNetwork()
Returns the network associated with this extractor.
|
void |
incrementalUpdate(java.util.ArrayList<Link> nonCommittalDeleted,
java.util.ArrayList<Link> nonCommittalAdded)
Calculates and sets graphlet counts and frequencies in an incremental way given lists of links added and deleted
|
void |
revert()
Reverts back to the current state of the network associated with this extractor.
|
void |
setNetwork(Network network)
Sets the network associated with this extractor.
|
void |
update()
Calculates the graphlet-counts from scratch for the currently associated network
|
public GraphletCounterExtractor(Network network)
public GraphletCounterExtractor()
public Network getNetwork()
public void setNetwork(Network network)
network
- the network which should be associated with this extractorpublic void update()
public int[] getGraphletCounts()
public double[] getFrequency()
public void revert()
public void incrementalUpdate(java.util.ArrayList<Link> nonCommittalDeleted, java.util.ArrayList<Link> nonCommittalAdded)
nonCommittalDeleted
- a list of links deleted from the current networknonCommittalAdded
- a list of links added to the network