public enum ComponentAssignmentStrategy extends Enum<ComponentAssignmentStrategy>
Enum Constant and Description |
---|
CLUSTERING
A component assignment strategy where the subgraph components correspond to the clusters computed by a clustering
algorithm based on
edge betweenness centrality . |
CONNECTED
A component assignment strategy where the subgraph components correspond to the connected components of the graph
induced by the partial elements.
|
CUSTOMIZED
A component assignment strategy where the subgraph components are defined by the user.
|
SINGLE
A component assignment strategy that assigns each partial node to a separate subgraph component.
|
Modifier and Type | Method and Description |
---|---|
static ComponentAssignmentStrategy |
fromOrdinal(int ordinal) |
int |
value() |
static ComponentAssignmentStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComponentAssignmentStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComponentAssignmentStrategy CLUSTERING
edge betweenness centrality
.PartialLayout.setComponentAssignmentStrategy(ComponentAssignmentStrategy)
public static final ComponentAssignmentStrategy CONNECTED
PartialLayout.setComponentAssignmentStrategy(ComponentAssignmentStrategy)
public static final ComponentAssignmentStrategy CUSTOMIZED
IDataProvider
associated with key PartialLayout.COMPONENT_ID_DPKEY
returns the same object for both of them.PartialLayout.COMPONENT_ID_DPKEY
,
PartialLayout.setComponentAssignmentStrategy(ComponentAssignmentStrategy)
public static final ComponentAssignmentStrategy SINGLE
core layout algorithm
doesn't have any effect because it is applied to each subgraph component (i.e., each single node) separately.PartialLayout.setComponentAssignmentStrategy(ComponentAssignmentStrategy)
public static final ComponentAssignmentStrategy fromOrdinal(int ordinal)
public int value()
public static ComponentAssignmentStrategy valueOf(String name)
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullname
- the name of the enum constant to be returned.public static ComponentAssignmentStrategy[] values()
for (ComponentAssignmentStrategy c : ComponentAssignmentStrategy.values()) System.out.println(c);