COIN-OR::LEMON - Graph Library

Ticket #335: 28c7ad6f8d91.patch

File 28c7ad6f8d91.patch, 622 bytes (added by Balazs Dezso, 15 years ago)

Fix clear() function

  • lemon/unionfind.h

    # HG changeset patch
    # User Balazs Dezso <deba@inf.elte.hu>
    # Date 1260432887 -3600
    # Node ID 28c7ad6f8d912e33ecdac866af26872de1cecc2c
    # Parent  6be1f9bd2ac079ce3a039f0aefc4747c5a2a8f2f
    Fix clear() function in ExtendFindEnum (#335)
    
    diff -r 6be1f9bd2ac0 -r 28c7ad6f8d91 lemon/unionfind.h
    a b  
    739739    /// Erase each item from the data structure.
    740740    void clear() {
    741741      items.clear();
    742       classes.clear;
     742      classes.clear();
    743743      firstClass = firstFreeClass = firstFreeItem = -1;
    744744    }
    745745