V
- the graph vertex type.E
- the graph edge type.public class ChordalGraphMaxCliqueFinder<V,E> extends Object implements CliqueAlgorithm<V>
ChordalityInspector
to compute a
perfect elimination order.
The maximum clique for a chordal graph is computed in $\mathcal{O}(|V| + |E|)$ time.
All the methods in this class are invoked in a lazy fashion, meaning that computations are only
started once the method gets invoked.CliqueAlgorithm.Clique<V>, CliqueAlgorithm.CliqueImpl<V>
Constructor and Description |
---|
ChordalGraphMaxCliqueFinder(Graph<V,E> graph)
Creates a new ChordalGraphMaxCliqueFinder instance.
|
ChordalGraphMaxCliqueFinder(Graph<V,E> graph,
ChordalityInspector.IterationOrder iterationOrder)
Creates a new ChordalGraphMaxCliqueFinder instance.
|
Modifier and Type | Method and Description |
---|---|
CliqueAlgorithm.Clique<V> |
getClique()
Returns a maximum cardinality
clique of the inspected
graph . |
public ChordalGraphMaxCliqueFinder(Graph<V,E> graph)
ChordalityInspector
used in
this implementation uses the default MaximumCardinalityIterator
iterator.graph
- graphpublic ChordalGraphMaxCliqueFinder(Graph<V,E> graph, ChordalityInspector.IterationOrder iterationOrder)
ChordalityInspector
used in
this implementation uses either the MaximumCardinalityIterator
iterator or the
LexBreadthFirstIterator
iterator, depending on the parameter iterationOrder
.graph
- graphiterationOrder
- constant which defines iterator to be used by the
ChordalityInspector
in this implementation.public CliqueAlgorithm.Clique<V> getClique()
graph
. If the graph isn't chordal, returns null.getClique
in interface CliqueAlgorithm<V>
graph
if it is chordal, null otherwise.Copyright © 2019. All rights reserved.