Van Wijk's cost model
Edge stuff, but commented