Ticket #7365: trac_7365-doctest.patch

File trac_7365-doctest.patch, 920 bytes (added by rlm, 11 years ago)
  • sage/graphs/graph.py

    # HG changeset patch
    # User Robert L. Miller <rlm@rlmiller.org>
    # Date 1261164056 28800
    # Node ID b052a9f1afec08b8c5d93f23f555d2bde8a987a1
    # Parent  1a7639c25dab505f45d70c1f860c3760c273363f
    Add doctest for two_factor_petersen
    
    diff -r 1a7639c25dab -r b052a9f1afec sage/graphs/graph.py
    a b  
    1181111811            True
    1181211812            sage: Set(set(classes[0]) | set(classes[1]) | set(classes[2])).cardinality() == g.size() # optional - requires GLPK or CBC
    1181311813            True
     11814
     11815        ::
     11816
     11817            sage: g = graphs.CirculantGraph(24, [7, 11])
     11818            sage: cl = g.two_factor_petersen()                     # optional - GLPK or CBC
     11819            sage: g.plot(edge_colors={'black':cl[0], 'red':cl[1]}) # optional - GLPK or CBC
     11820
    1181411821        """
    1181511822   
    1181611823        d = self.eulerian_orientation()