public class GraphMetrics$ extends Object
The program creates a random graph and computes and prints the following metrics: - number of vertices - number of edges - average node degree - the vertex ids with the max/min in- and out-degrees
The input file is expected to contain one edge per line, with long IDs and no values, in the following format:
<sourceVertexID>\t<targetVertexID>
If no arguments are provided, the example runs with a random graph of 100 vertices.
Modifier and Type | Field and Description |
---|---|
static GraphMetrics$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
GraphMetrics$() |
public static final GraphMetrics$ MODULE$
public void main(String[] args)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.