Changeset 7776:994d17e36ddd
- Timestamp:
- 12/15/07 12:31:29 (5 years ago)
- Branch:
- default
- Location:
- sage
- Files:
-
- 3 edited
-
coding/binary_code.pyx (modified) (8 diffs)
-
graphs/graph_generators.py (modified) (3 diffs)
-
graphs/graph_isom.pyx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sage/coding/binary_code.pyx
r7775 r7776 1758 1758 sage: P = PartitionStack(4, 8) 1759 1759 sage: P._refine(1, [[0,0],[1,0]], B) 1760 3041760 177 1761 1761 sage: P._split_vertex(0, 2) 1762 1762 0 1763 1763 sage: P._refine(2, [[0,0]], B) 1764 3461764 289 1765 1765 sage: P._split_vertex(1, 3) 1766 1766 1 1767 1767 sage: P._refine(3, [[0,1]], B) 1768 5831768 462 1769 1769 sage: P._split_vertex(2, 4) 1770 1770 2 1771 1771 sage: P._refine(4, [[0,2]], B) 1772 1 7541772 1498 1773 1773 sage: P._split_vertex(3, 5) 1774 1774 3 … … 1778 1778 4 1779 1779 sage: P._refine(6, [[0,4]], B) 1780 1 6091780 1218 1781 1781 sage: P._is_discrete(5) 1782 1782 0 … … 1854 1854 r += 1 1855 1855 if r >= i: break 1856 while self_col_lvls[j] > k: 1857 j += 1 1858 j += 1 1859 # print 'end s j:', j 1860 invariant += (i-j) 1861 else: j = i 1856 invariant += (i-j) 1857 j = i 1862 1858 else: 1863 1859 # print 'col' … … 1894 1890 r += 1 1895 1891 if r >= i: break 1896 while self_wd_lvls[j] > k:1897 j += 11898 j += 11899 1892 invariant += (i-j) 1900 else:j = i1893 j = i 1901 1894 m += 1 1902 1895 if invariant != -1: … … 1959 1952 sage: P = PartitionStack(4, 8) 1960 1953 sage: P._refine(0, [[0,0],[1,0]], B) 1961 3041954 177 1962 1955 sage: P._split_vertex(0, 1) 1963 1956 0 1964 1957 sage: P._refine(1, [[0,0]], B) 1965 3461958 289 1966 1959 sage: P._split_vertex(1, 2) 1967 1960 1 1968 1961 sage: P._refine(2, [[0,1]], B) 1969 5831962 462 1970 1963 sage: P._split_vertex(2, 3) 1971 1964 2 1972 1965 sage: P._refine(3, [[0,2]], B) 1973 1 7541966 1498 1974 1967 sage: P._split_vertex(4, 4) 1975 1968 4 1976 1969 sage: P._refine(4, [[0,4]], B) 1977 1 6091970 1218 1978 1971 sage: P._is_discrete(4) 1979 1972 1 … … 1983 1976 4 1984 1977 sage: Q._refine(4, [[0,4]], B) 1985 1 6101978 1219 1986 1979 sage: Q._is_discrete(4) 1987 1980 1 … … 2094 2087 sage: P = PartitionStack(4, 8) 2095 2088 sage: P._refine(0, [[0,0],[1,0]], B) 2096 3042089 177 2097 2090 sage: P._split_vertex(0, 1) 2098 2091 0 2099 2092 sage: P._refine(1, [[0,0]], B) 2100 3462093 289 2101 2094 sage: P._split_vertex(1, 2) 2102 2095 1 2103 2096 sage: P._refine(2, [[0,1]], B) 2104 5832097 462 2105 2098 sage: P._split_vertex(2, 3) 2106 2099 2 2107 2100 sage: P._refine(3, [[0,2]], B) 2108 1 7542101 1498 2109 2102 sage: P._split_vertex(4, 4) 2110 2103 4 2111 2104 sage: P._refine(4, [[0,4]], B) 2112 1 6092105 1218 2113 2106 sage: P._is_discrete(4) 2114 2107 1 … … 2118 2111 4 2119 2112 sage: Q._refine(4, [[0,4]], B) 2120 1 6102113 1219 2121 2114 sage: Q._is_discrete(4) 2122 2115 1 -
sage/graphs/graph_generators.py
r7775 r7776 2727 2727 Generate all bipartite graphs on up to 7 vertices: 2728 2728 sage: L = list( graphs(7, lambda G: G.is_bipartite(), augment='vertices') ) 2729 sage: len(L) 2729 sage: len(L) # random, due to NetworkX bug: see https://networkx.lanl.gov/ticket/132 2730 2730 133 2731 2731 2732 2732 Generate all bipartite graphs on exactly 8 vertices: 2733 2733 sage: L = list( graphs(8, lambda G: G.is_bipartite()) ) 2734 sage: len(L) 2734 sage: len(L) # random, due to NetworkX bug: see https://networkx.lanl.gov/ticket/132 2735 2735 143 2736 2736 … … 2843 2843 Generate all bipartite graphs on up to 7 vertices: 2844 2844 sage: L = list( graphs(7, lambda G: G.is_bipartite(), augment='vertices') ) 2845 sage: len(L) 2845 sage: len(L) # random, due to NetworkX bug: see https://networkx.lanl.gov/ticket/132 2846 2846 133 2847 2847 … … 2985 2985 Generate all bipartite graphs on 7 vertices: 2986 2986 sage: L = list( graphs(7, lambda G: G.is_bipartite()) ) 2987 sage: len(L) 2987 sage: len(L) # random, due to NetworkX bug: see https://networkx.lanl.gov/ticket/132 2988 2988 29 2989 2989 -
sage/graphs/graph_isom.pyx
r7775 r7776 588 588 if r >= i: break 589 589 alpha[s] = -1 590 while self.levels[j] > k:591 j += 1592 j += 1593 590 invariant += (i - j) 591 j = i 594 592 else: j = i 595 593 if not dig: m += 1; continue … … 632 630 if r >= i: break 633 631 alpha[s] = -1 634 while self.levels[j] > k:635 j += 1636 j += 1637 632 invariant += (i - j) 633 j = i 638 634 else: j = i 639 635 m += 1
Note: See TracChangeset
for help on using the changeset viewer.
