public class PathLinkerModel extends Object
Constructor and Description |
---|
PathLinkerModel(org.cytoscape.model.CyNetwork originalNetwork,
boolean allowSourcesTargetsInPaths,
boolean includePathScoreTies,
Set<String> sourceNames,
Set<String> targetNames,
List<org.cytoscape.model.CyNode> sourcesList,
List<org.cytoscape.model.CyNode> targetsList,
String edgeWeightColumnName,
int inputK,
EdgeWeightType edgeWeightType,
Double edgePenalty,
Map<org.cytoscape.model.CyNode,String> cyNodeToId)
Constructor of the model
|
Modifier and Type | Method and Description |
---|---|
int |
getOutputK()
Getter method of output k value
|
ArrayList<Algorithms.PathWay> |
getResult()
Getter method of the result
|
Set<org.cytoscape.model.CyNode> |
getSubgraphSources()
Getter method of the subgraph sources
|
Set<org.cytoscape.model.CyNode> |
getSubgraphTargets()
Getter method of the subgraph targets
|
void |
runKSP()
Runs all the necessary algorithms to calculate kth shortest path
If path exists, selects corresponding nodes and edges in the network
to prepare for the subnetwork creation
|
public PathLinkerModel(org.cytoscape.model.CyNetwork originalNetwork, boolean allowSourcesTargetsInPaths, boolean includePathScoreTies, Set<String> sourceNames, Set<String> targetNames, List<org.cytoscape.model.CyNode> sourcesList, List<org.cytoscape.model.CyNode> targetsList, String edgeWeightColumnName, int inputK, EdgeWeightType edgeWeightType, Double edgePenalty, Map<org.cytoscape.model.CyNode,String> cyNodeToId)
originalNetwork
- the original network given by the viewallowSourcesTargetsInPaths
- boolean deciding if sources and targets should be allow in the result pathincludePathScoreTies
- the option to include all paths of equal lengthsourceNames
- set of sources in stringtargetNames
- set of targets in stringsourcesList
- list of sources in CyNodetargetsList
- list of targets in CyNodeedgeWeightColumnName
- column name that contains the edge weight informationinputK
- input k valueedgeWeightType
- edge weight typeedgePenalty
- edge penaltycyNodeToId
- map mapping all CyNode to its string namepublic Set<org.cytoscape.model.CyNode> getSubgraphSources()
public Set<org.cytoscape.model.CyNode> getSubgraphTargets()
public int getOutputK()
public ArrayList<Algorithms.PathWay> getResult()
public void runKSP()
Copyright © 2018. All rights reserved.