Class FeatureGraphBuilder<I extends Interaction,​F extends Feature>


  • 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 Detail

      • FeatureGraphBuilder

        public FeatureGraphBuilder()

        Constructor for FeatureGraphBuilder.

      • FeatureGraphBuilder

        public FeatureGraphBuilder​(MIComparator<F> customFeatureComparator)

        Constructor for FeatureGraphBuilder.

        Parameters:
        customFeatureComparator - a MIComparator 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 - a Collection object.
        Returns:
        a Graph object.
      • buildGraphFrom

        public org.jgrapht.Graph<F,​BindingPair<F>> buildGraphFrom​(Iterator<I> interaction)

        buildGraphFrom

        Parameters:
        interaction - a Iterator object.
        Returns:
        a Graph object.