Package org.bridgedb.impl
Class TransitiveGraph
- java.lang.Object
-
- org.bridgedb.impl.TransitiveGraph
-
public class TransitiveGraph extends Object
Helper for calculating paths inIDMapperStackin transitive mode.
-
-
Constructor Summary
Constructors Constructor Description TransitiveGraph(List<IDMapper> gdbs)Constructor: immediately starts calculating paths.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisTransitiveMappingSupported(DataSource src, DataSource tgt)Set<Xref>mapIDtransitiveTargetted(Xref ref, Set<DataSource> dsFilter)Set<Xref>mapIDtransitiveUntargetted(Xref ref)voidprintMap(Map<DataSource,Set<org.bridgedb.impl.TransitiveGraph.Path>> map)This is for testing.
-
-
-
Constructor Detail
-
TransitiveGraph
public TransitiveGraph(List<IDMapper> gdbs) throws IDMapperException
Constructor: immediately starts calculating paths.- Parameters:
gdbs- - list of IDMappers- Throws:
IDMapperException- - exception class
-
-
Method Detail
-
printMap
public void printMap(Map<DataSource,Set<org.bridgedb.impl.TransitiveGraph.Path>> map)
This is for testing. May be removed in the future.- Parameters:
map- - map of DataSource and Set of Paths
-
isTransitiveMappingSupported
public boolean isTransitiveMappingSupported(DataSource src, DataSource tgt) throws IDMapperException
- Throws:
IDMapperException
-
mapIDtransitiveTargetted
public Set<Xref> mapIDtransitiveTargetted(Xref ref, Set<DataSource> dsFilter) throws IDMapperException
- Throws:
IDMapperException
-
mapIDtransitiveUntargetted
public Set<Xref> mapIDtransitiveUntargetted(Xref ref) throws IDMapperException
- Throws:
IDMapperException
-
-