class GraphStatistics {

    public static double density(long nodeCount, long relationshipCount) {
        return (nodeCount > 0L) ? (double) relationshipCount / (nodeCount * (nodeCount - 1)) : 0;
    }

    private  GraphStatistics();

}