org.graphnetwork.jgrapht.graph.util
Class Math

java.lang.Object
  extended by org.graphnetwork.jgrapht.graph.util.Math

public class Math
extends java.lang.Object


Constructor Summary
Math()
           
 
Method Summary
static float graphDensity(int V, int E)
          Calculates the density of a graph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Math

public Math()
Method Detail

graphDensity

public static float graphDensity(int V,
                                 int E)
Calculates the density of a graph

Parameters:
V - the number of vertices of the graph
E - the number of edges of the graph
Returns:
the density of a graph