Changeset 7395:a111358207c1


Ignore:
Timestamp:
11/21/07 05:31:59 (6 years ago)
Author:
William Stein <wstein@…>
Branch:
default
Message:

Speed up doctesting some for graph database and generators.

Location:
sage/graphs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sage/graphs/graph_database.py

    r7148 r7395  
    12951295            ...             misc.graph_id=graph_data.graph_id WHERE \ 
    12961296            ...             misc.induced_subgraphs regexp '.*E~~w.*'") 
    1297             sage: G.display_all(query=S) 
     1297            sage: G.display_all(query=S)             # long time 
    12981298            <html>... 
    12991299        """ 
     
    15941594            ...             misc.graph_id=graph_data.graph_id WHERE \ 
    15951595            ...             misc.induced_subgraphs regexp '.*E~~w.*'") 
    1596             sage: G.display_tables(query=S, \ 
    1597             ...             tables=['graph_data','misc','spectrum','degrees','aut_grp']) 
     1596            sage: G.display_tables(query=S, tables=['graph_data','misc','spectrum','degrees','aut_grp'])  # long time 
    15981597            <html>... 
    15991598        """ 
     
    19191918            ...             misc.graph_id=graph_data.graph_id WHERE \ 
    19201919            ...             misc.induced_subgraphs regexp '.*E~~w.*'") 
    1921             sage: graphs_query.display_properties(query=S, \ 
    1922             ...             properties=['induced_subgraphs']) 
     1920            sage: graphs_query.display_properties(query=S, properties=['induced_subgraphs']) # long time 
    19231921            <html>... 
    19241922        """ 
  • sage/graphs/graph_generators.py

    r7158 r7395  
    18131813        layout algorithms: 
    18141814            sage: import networkx         
    1815             sage: n = networkx.complete_bipartite_graph(389,157); spring_big = Graph(n) 
    1816             sage: posdict_big = graphs.CompleteBipartiteGraph(389,157) 
     1815            sage: n = networkx.complete_bipartite_graph(389,157); spring_big = Graph(n)   # long time 
     1816            sage: posdict_big = graphs.CompleteBipartiteGraph(389,157)                    # long time 
    18171817 
    18181818        Compare the plotting: 
     
    21132113            0.22401400000000038 
    21142114             
    2115             sage: t=cputime(); regular_dense = graphs.RandomGNP(389,.88) 
     2115            sage: t=cputime(); regular_dense = graphs.RandomGNP(389,.88)    # long time 
    21162116            sage: cputime(t)     # slightly random 
    21172117            0.87205499999999958 
    21182118             
    2119             sage: t=cputime(); fast_dense = graphs.RandomGNP(389,.88,fast=True) 
     2119            sage: t=cputime(); fast_dense = graphs.RandomGNP(389,.88,fast=True)    # long time 
    21202120            sage: cputime(t)     # slightly random 
    21212121            0.90005700000000033 
     
    26182618            sage: len(L) 
    26192619            31 
    2620             sage: graphs_list.show_graphs(L) 
     2620            sage: graphs_list.show_graphs(L)    # long time 
    26212621         
    26222622        Generate all graphs with degree at most 2, up to 6 vertices. 
     
    26802680        sage: len(L) 
    26812681        31 
    2682         sage: graphs_list.show_graphs(L) 
     2682        sage: graphs_list.show_graphs(L)              # long time 
    26832683     
    26842684    Generate all bipartite graphs on up to 7 vertices: 
Note: See TracChangeset for help on using the changeset viewer.