Changeset 7395:a111358207c1
- Timestamp:
- 11/21/07 05:31:59 (6 years ago)
- Branch:
- default
- Location:
- sage/graphs
- Files:
-
- 2 edited
-
graph_database.py (modified) (3 diffs)
-
graph_generators.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sage/graphs/graph_database.py
r7148 r7395 1295 1295 ... misc.graph_id=graph_data.graph_id WHERE \ 1296 1296 ... misc.induced_subgraphs regexp '.*E~~w.*'") 1297 sage: G.display_all(query=S) 1297 sage: G.display_all(query=S) # long time 1298 1298 <html>... 1299 1299 """ … … 1594 1594 ... misc.graph_id=graph_data.graph_id WHERE \ 1595 1595 ... 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 1598 1597 <html>... 1599 1598 """ … … 1919 1918 ... misc.graph_id=graph_data.graph_id WHERE \ 1920 1919 ... 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 1923 1921 <html>... 1924 1922 """ -
sage/graphs/graph_generators.py
r7158 r7395 1813 1813 layout algorithms: 1814 1814 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 1817 1817 1818 1818 Compare the plotting: … … 2113 2113 0.22401400000000038 2114 2114 2115 sage: t=cputime(); regular_dense = graphs.RandomGNP(389,.88) 2115 sage: t=cputime(); regular_dense = graphs.RandomGNP(389,.88) # long time 2116 2116 sage: cputime(t) # slightly random 2117 2117 0.87205499999999958 2118 2118 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 2120 2120 sage: cputime(t) # slightly random 2121 2121 0.90005700000000033 … … 2618 2618 sage: len(L) 2619 2619 31 2620 sage: graphs_list.show_graphs(L) 2620 sage: graphs_list.show_graphs(L) # long time 2621 2621 2622 2622 Generate all graphs with degree at most 2, up to 6 vertices. … … 2680 2680 sage: len(L) 2681 2681 31 2682 sage: graphs_list.show_graphs(L) 2682 sage: graphs_list.show_graphs(L) # long time 2683 2683 2684 2684 Generate all bipartite graphs on up to 7 vertices:
Note: See TracChangeset
for help on using the changeset viewer.
