bcds.phison.cmd
Class PrintDegreeDistribution<V,E>

java.lang.Object
  extended by 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

Constructor Summary
PrintDegreeDistribution()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void parseArgs(java.lang.String[] args)
          Checks the arguments passed to PrintDegreeDistribution.
 void readGraph()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintDegreeDistribution

public PrintDegreeDistribution()
Method Detail

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)