bcds.phison.cmd
Class PrintDegreeDistribution<V,E>
java.lang.Object
bcds.phison.cmd.PrintDegreeDistribution<V,E>
public class PrintDegreeDistribution<V,E>
- extends java.lang.Object
Prints the (outgoing) degree distribution of a given topology. It uses
the OutNodeDegree
graph metric.
The output is as follows:
# BEGIN topology
topology_name
# END topology
#
# BEGIN values
min_degree nnn_1
...
max_degree nnn_N
# END values
Note: non-existing degrees do not appear in the output.
- Author:
- mmanzano
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintDegreeDistribution
public PrintDegreeDistribution()
readGraph
public void readGraph()
parseArgs
public void parseArgs(java.lang.String[] args)
- Checks the arguments passed to
PrintDegreeDistribution
.
The topology file name is the only one needed.
run
public void run()
main
public static void main(java.lang.String[] args)