Interface CommunityGraphGenerator<U>
- Type Parameters:
U
- Type of the users.
- All Known Implementing Classes:
CompleteCommunityGraphGenerator
,CompleteCommunityNoSelfLoopsGraphGenerator
,InterCommunityGraphGenerator
public interface CommunityGraphGenerator<U>
Generates a multi-graph based on the community partition of a network.
-
Method Summary
Modifier and Type Method Description MultiGraph<java.lang.Integer>
generate(Graph<U> graph, Communities<U> communities)
Given a graph and its community partition, generates the community graph.
-
Method Details
-
generate
Given a graph and its community partition, generates the community graph.- Parameters:
graph
- the original network.communities
- the community partition of the network.- Returns:
- the community-based multigraph.
-