renamed to pwlc
renamed to pwld, added edge creation