Class InfomapConfigurator<U extends java.io.Serializable>
java.lang.Object
es.uam.eps.ir.relison.grid.community.modularity.InfomapConfigurator<U>
- Type Parameters:
U
- type of the users
- All Implemented Interfaces:
CommunityDetectionConfigurator<U>
public class InfomapConfigurator<U extends java.io.Serializable> extends java.lang.Object implements CommunityDetectionConfigurator<U>
Configurator for the Infomap community detection algorithm.
- See Also:
Infomap
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
NUMTRIALS
Identifier for the maximum number of iterations of the most external loop.private java.lang.String
tempFolder
A temporary folder for intermediate files. -
Constructor Summary
Constructors Constructor Description InfomapConfigurator(java.lang.String tempFolder)
Constructor -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.util.function.Supplier<CommunityDetectionAlgorithm<U>>>
configure(Grid grid)
Configures a community detection algorithm.
-
Field Details
-
tempFolder
private final java.lang.String tempFolderA temporary folder for intermediate files. -
NUMTRIALS
private static final java.lang.String NUMTRIALSIdentifier for the maximum number of iterations of the most external loop.- See Also:
- Constant Field Values
-
-
Constructor Details
-
InfomapConfigurator
public InfomapConfigurator(java.lang.String tempFolder)Constructor- Parameters:
tempFolder
- a folder for storing temporary files.
-
-
Method Details
-
configure
public java.util.Map<java.lang.String,java.util.function.Supplier<CommunityDetectionAlgorithm<U>>> configure(Grid grid)Description copied from interface:CommunityDetectionConfigurator
Configures a community detection algorithm.- Specified by:
configure
in interfaceCommunityDetectionConfigurator<U extends java.io.Serializable>
- Parameters:
grid
- the parameters of the algorithm.- Returns:
- a pair containing the name of the
-