Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.06 KB

File metadata and controls

32 lines (23 loc) · 1.06 KB

MinCostFlow

MinCostFlow is a pathway reconstruction algorithm which and adapts the minimum cost flow problem to a pathway reconstruction problem, considering the 'flow' between sources and targets, rewarding flow with sources adding flow and targets removing flow, where each edge restricts flow while rewarding edges with higher weights.

MinCostFlow takes two optional parameters:

  • flow: (int) the amount of flow going through the graph
  • capacity: the (float) max capacity for edges

Dataset Usage

MinCostFlow uses the input's sources, targets, and edge weights. MinCostFlow also considers directionality.

Implementation Details

MinCostFlow converts all undirected edges into directed edges where undirected edges get converted into two directed edges pointing opposite of one another.

External links