Package com.jgalgo
Enum CoreAlgo.DegreeType
- java.lang.Object
-
- java.lang.Enum<CoreAlgo.DegreeType>
-
- com.jgalgo.CoreAlgo.DegreeType
-
- All Implemented Interfaces:
Serializable
,Comparable<CoreAlgo.DegreeType>
- Enclosing interface:
- CoreAlgo
public static enum CoreAlgo.DegreeType extends Enum<CoreAlgo.DegreeType>
The degree type the cores are defined with respect to.A \(k\)-core is a maximal set of vertices such that the graph induced by the set has minimum degree \(k\). Different types of degrees can be considered, yielding different types of cores. For undirected graphs the degree type has no effect.
- Author:
- Barak Ugav
- See Also:
CoreAlgo
,CoreAlgo.computeCores(Graph, DegreeType)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description InDegree
Cores will be computed with respect to the in-degree of the vertices, namely the number of incoming edges.OutAndInDegree
Cores will be computed with respect to the sum of the in and out degrees of the vertices.OutDegree
Cores will be computed with respect to the out-degree of the vertices, namely the number of outgoing edges.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CoreAlgo.DegreeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CoreAlgo.DegreeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OutDegree
public static final CoreAlgo.DegreeType OutDegree
Cores will be computed with respect to the out-degree of the vertices, namely the number of outgoing edges.
-
InDegree
public static final CoreAlgo.DegreeType InDegree
Cores will be computed with respect to the in-degree of the vertices, namely the number of incoming edges.
-
OutAndInDegree
public static final CoreAlgo.DegreeType OutAndInDegree
Cores will be computed with respect to the sum of the in and out degrees of the vertices.
-
-
Method Detail
-
values
public static CoreAlgo.DegreeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CoreAlgo.DegreeType c : CoreAlgo.DegreeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CoreAlgo.DegreeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-