Class FeatureGraphBuilder<I extends Interaction,F extends Feature>
- java.lang.Object
-
- psidev.psi.mi.jami.analysis.graph.FeatureGraphBuilder<I,F>
-
public class FeatureGraphBuilder<I extends Interaction,F extends Feature> extends Object
This class will create a graph from one to several interactions. Each edge is a bindingPair and each node is a feature. It will build a BindingFeatureGraph The default feature comparator can be overridden when giving a specific MIComparator in the constructor of FeatureGraphBuilder.- Since:
14/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description FeatureGraphBuilder()
Constructor for FeatureGraphBuilder.FeatureGraphBuilder(MIComparator<F> customFeatureComparator)
Constructor for FeatureGraphBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jgrapht.Graph<F,BindingPair<F>>
buildGraphFrom(I interaction)
buildGraphFromorg.jgrapht.Graph<F,BindingPair<F>>
buildGraphFrom(Collection<I> interaction)
buildGraphFromorg.jgrapht.Graph<F,BindingPair<F>>
buildGraphFrom(Iterator<I> interaction)
buildGraphFrom
-
-
-
Constructor Detail
-
FeatureGraphBuilder
public FeatureGraphBuilder()
Constructor for FeatureGraphBuilder.
-
FeatureGraphBuilder
public FeatureGraphBuilder(MIComparator<F> customFeatureComparator)
Constructor for FeatureGraphBuilder.
- Parameters:
customFeatureComparator
- aMIComparator
object.
-
-
Method Detail
-
buildGraphFrom
public org.jgrapht.Graph<F,BindingPair<F>> buildGraphFrom(I interaction)
buildGraphFrom
- Parameters:
interaction
- a I object.- Returns:
- a
Graph
object.
-
buildGraphFrom
public org.jgrapht.Graph<F,BindingPair<F>> buildGraphFrom(Collection<I> interaction)
buildGraphFrom
- Parameters:
interaction
- aCollection
object.- Returns:
- a
Graph
object.
-
-