amueller / gco_python

Python wrappers for GCO alpha-expansion and alpha-beta-swaps
137 stars 64 forks source link

add option of edge weight in cut_from_graph #6

Closed trsaunders closed 12 years ago

trsaunders commented 12 years ago

This change is fairly simple, it gives the option of adding a third column to edges that contains the edge weight. The examples still work with this new code.

There might be a better way of implementing this, but I am making this pull request to get some feedback!

amueller commented 12 years ago

Hi. Thanks, that is helpful :)