nct.service.interactions
Interface InteractionNetwork<NodeType extends java.lang.Comparable<? super NodeType>,WeightType extends java.lang.Comparable<? super WeightType>>
- All Known Implementing Classes:
- DIPInteractionNetwork, SIFInteractionNetwork
public interface InteractionNetwork<NodeType extends java.lang.Comparable<? super NodeType>,WeightType extends java.lang.Comparable<? super WeightType>>
A generic interface that describes a method used to update a graph based on
some sort of interaction network input. The expected usage if for the user
to create a Graph containing no nodes/edges, then create an InteractionNetwork,
and then call updateGraph containing the empty graph which will add the edges
and nodes found in the InteractionNetwork to the graph.
Graph<String,Double> graph = new BasicGraph<String,Double>();
InteractionNetwork intNet = new ConcreteInteractionNetwork( LotOfData );
intNet.updateGraph( graph );
This roundabout way of getting information from a data source into a graph allows
the InteractionNetwork to be constructed in any manner of ways.
updateGraph
void updateGraph(Graph<NodeType,WeightType> graph)
- Updates the given graph with whatever values are created from
the interaction network.
- Parameters:
graph
- The graph to be updated with information (i.e. nodes
and edges) from this interaction network.