Package es.urjc.etsii.grafo.util
Class GraphUtil
java.lang.Object
es.urjc.etsii.grafo.util.GraphUtil
Util methods to manipulate graphs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long
maxNEdges
(int n) Returns the maximum number of edges for a complete graph with n nodes
-
Constructor Details
-
GraphUtil
public GraphUtil()
-
-
Method Details
-
maxNEdges
public static long maxNEdges(int n) Returns the maximum number of edges for a complete graph with n nodes- Parameters:
n
- number of nodes- Returns:
- maximum number of edges
-