Module org.jgrapht.core
Package org.jgrapht.alg.interfaces
Interface MaximumDensitySubgraphAlgorithm<V,E>
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Known Implementing Classes:
GoldbergMaximumDensitySubgraphAlgorithm
,GoldbergMaximumDensitySubgraphAlgorithmBase
,GoldbergMaximumDensitySubgraphAlgorithmNodeWeightPerEdgeWeight
,GoldbergMaximumDensitySubgraphAlgorithmNodeWeights
public interface MaximumDensitySubgraphAlgorithm<V,E>
Interface for algorithms computing the maximum density subgraph
- Author:
- Andre Immig
-
Method Summary
Modifier and TypeMethodDescriptionCalculate a maximum density subgraphdouble
Computes density of a maximum density subgraph.
-
Method Details
-
calculateDensest
Calculate a maximum density subgraph- Returns:
- the maximum density subgraph
-
getDensity
double getDensity()Computes density of a maximum density subgraph.- Returns:
- the actual density of the maximum density subgraph
-