demo/digraph.lgf
author |
Peter Kovacs <kpeter@inf.elte.hu> |
|
Wed, 29 Apr 2009 16:54:27 +0200 |
changeset 689 |
111698359429 |
permissions |
-rw-r--r-- |
Less map copying in NetworkSimplex (#234)
- The graph is copied in the constructor instead of the init() function.
It must not be modified after the class is constructed.
- The maps are copied once (instead of twice).
- Remove FlowMap, PotentialMap typedefs and flowMap(), pontentialMap()
setter functions.
- flowMap() and potentialMap() query functions copy the values into the
given map (reference) instead of returning a const reference to a
previously constructed map.