Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphs: grouped sporadic distance-regular graphs in a function #30356

Closed
Ivo-Maffei mannequin opened this issue Aug 14, 2020 · 32 comments
Closed

Graphs: grouped sporadic distance-regular graphs in a function #30356

Ivo-Maffei mannequin opened this issue Aug 14, 2020 · 32 comments

Comments

@Ivo-Maffei
Copy link
Mannequin

Ivo-Maffei mannequin commented Aug 14, 2020

Added a function distance_regular_graph with the purpose to build distance-regular graphs given their intersection array. At the moment we grouped only the sporadic constructions and serious existence checks are only done via the external package https://github.com/jaanos/sage-drg.

Depends on #30355
Depends on #30343

CC: @dimpase

Component: graph theory

Author: Ivo Maffei

Branch/Commit: 0a9a194

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/30356

@Ivo-Maffei Ivo-Maffei mannequin added this to the sage-9.2 milestone Aug 14, 2020
@Ivo-Maffei
Copy link
Mannequin Author

Ivo-Maffei mannequin commented Aug 14, 2020

Branch: public/graphs/30356

@Ivo-Maffei
Copy link
Mannequin Author

Ivo-Maffei mannequin commented Aug 14, 2020

comment:1

I will add more constructions to this function later on.
Now I'm mainly concerned with how to handle the drg package.


Last 10 new commits:

35a457eMerge branch 30337 into 30343
d0ca365Merge branch 'drg_gen_pol' into drg_general_func
0268857fixed most sporadic graphs; added some docstring; added method to graphs
51dda87added (extended) bipartite double method to undirected graphs
eed2fe3fix bug with extended bipartite
0f2dcceadded more doctests
13dc48aMerge branch 30240 into bipartite_double
864cd35Merge branch 'bipartite_double' into drg_general_func
17a0b90completed sporadic database; added more docstrings; added basic checks
bd5ef0afixed docstring and doctests

@Ivo-Maffei
Copy link
Mannequin Author

Ivo-Maffei mannequin commented Aug 14, 2020

Commit: bd5ef0a

@Ivo-Maffei
Copy link
Mannequin Author

Ivo-Maffei mannequin commented Aug 14, 2020

Changed dependencies from #300355 to #30355

@Ivo-Maffei Ivo-Maffei mannequin added the s: needs review label Aug 14, 2020
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 18, 2020

Changed commit from bd5ef0a to 1a143bc

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 18, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

2d6c8bafix docstring; added doctests; simplier code
1a143bcMerge branch #30355 into #30356

@dimpase
Copy link
Member

dimpase commented Aug 22, 2020

Reviewer: Dima Pasechnik

@dimpase
Copy link
Member

dimpase commented Aug 22, 2020

comment:3

after merging beta9 in, doctests fail, e.g.

File "src/sage/graphs/generators/distance_regular.pyx", line 15, in sage.graphs.generators.distance_regular
Failed example:
    H = graphs.distance_regular_graph([15, 14, 10, 3, 1, 5, 12, 15])
Exception raised:
    Traceback (most recent call last):
      File "/mnt/opt/Sage/sage-dev/local/lib/python3.7/site-packages/sage/doctest/forker.py", line 715, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/mnt/opt/Sage/sage-dev/local/lib/python3.7/site-packages/sage/doctest/forker.py", line 1139, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.graphs.generators.distance_regular[2]>", line 1, in <module>
        H = graphs.distance_regular_graph([Integer(15), Integer(14), Integer(10), Integer(3), Integer(1), Integer(5), Integer(12), Integer(15)])
      File "sage/graphs/generators/distance_regular.pyx", line 1902, in sage.graphs.generators.distance_regular.distance_regular_graph (build/cythonized/sage/graphs/generators/distance_regular.c:25204)
        any([(arr[d+i+1] - arr[d+i]) < 0 for i in range(d)]):
    IndexError: list index out of range

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 22, 2020

Changed commit from 1a143bc to 085d36e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 22, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

4d91c20Merge branch 9.2.beta9 into 30356
085d36efixed existence checks without drg module

@Ivo-Maffei
Copy link
Mannequin Author

Ivo-Maffei mannequin commented Aug 22, 2020

comment:5

I forgot to test the code without the drg module. Now it should be fixed.

@Ivo-Maffei Ivo-Maffei mannequin added s: needs review and removed s: needs work labels Aug 22, 2020
@dimpase
Copy link
Member

dimpase commented Aug 23, 2020

comment:6

this ticket also gets shot down by dog-slow and memory-hungry sage.graphs.generators.distance_regular.HermitianFormsGraph

@Ivo-Maffei
Copy link
Mannequin Author

Ivo-Maffei mannequin commented Aug 26, 2020

Changed dependencies from #30355 to #30355, #30343

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 29, 2020

Branch pushed to git repo; I updated commit sha1. Last 10 new commits:

a0463d5fix docsrtings; renamed module
5d16394renamed in design_catalog
e6ff3faMerge branch 't/30223' into t/30337
3e1df8cadded const to half cube
0d92ec4Merge branch 't/30329' into t/30337
ac3ed1aMerge branch 't/30337' into t/30343
376d459convert matrices in bilinearFormsGraph to integers to lower memory requirements
11d9953Merge branch 't/30337' into t/30343
5367858some code formatting
fd258e8Merge branch 't/30343' into t/30356

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 29, 2020

Changed commit from 085d36e to fd258e8

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 29, 2020

Changed commit from fd258e8 to 625b266

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 29, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

625b266added doctests to _integersection_array_from_graph

@dimpase
Copy link
Member

dimpase commented Sep 5, 2020

comment:10

should this be rebased over the latests positively reviewed tickets by you?

@Ivo-Maffei
Copy link
Mannequin Author

Ivo-Maffei mannequin commented Sep 6, 2020

comment:11

Replying to @dimpase:

should this be rebased over the latests positively reviewed tickets by you?

Yes. The dependency chain is #30312 -> #30329 -> #30337 -> #30343 -> #30356
At the moment #30312 and #30329 are done. When #30343 will be sorted (rebased on updated #30337), I'll fix this ticket as well

@fchapoton
Copy link
Contributor

comment:12

It seems to be a not-so-good idea to have such long chains of dependencies, if not really required. This can be blocked at any step. Think parallel instead of series.

@dimpase
Copy link
Member

dimpase commented Sep 13, 2020

comment:13

without refactoring into smaller modules, this looks hard to avoid.

@fchapoton
Copy link
Contributor

comment:14

Indeed. This was just a non-specific comment.

Note that one of the patchbot plugins is not green.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 14, 2020

Branch pushed to git repo; I updated commit sha1. Last 10 new commits:

1fdcad9fixed typo
c97bda5Merge branch 't/30329' into t/30337
3024980faster implementation of HalfCube
898fbeeadded positions to HalfCube
d9c9149Merge branch 't/30509' into t/30337
3449361Merge branch 9.2.beta12 into t/30337
b99474bMerge branch 't/30337' into t/30343
7d17b7dremoved blank lines
717cf19Merge branch 't/30343' into t/30356
63c88c0fix bug; avoid long computations on import

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 14, 2020

Changed commit from 625b266 to 63c88c0

@Ivo-Maffei
Copy link
Mannequin Author

Ivo-Maffei mannequin commented Sep 14, 2020

comment:16

Merged all dependencies and fixed a bug

@Ivo-Maffei Ivo-Maffei mannequin added s: needs review and removed s: needs work labels Sep 14, 2020
@dimpase
Copy link
Member

dimpase commented Sep 16, 2020

comment:17

OK

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 15, 2020

Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. This was a forced push. Last 10 new commits:

47b0abaremote extra spaces
ad0c3bbtypo in the graph name string
a176e0bmissing #optional tag added
54499c7sketch general function with conditionals for drg module
c5f0f3dfixed most sporadic graphs; added some docstring; added method to graphs
f675f2ccompleted sporadic database; added more docstrings; added basic checks
e4b1d59fixed docstring and doctests
9aa7d07fixed existence checks without drg module
4bba926added doctests to _integersection_array_from_graph
3b61736fix bug; avoid long computations on import

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 15, 2020

Changed commit from 63c88c0 to 3b61736

@dimpase
Copy link
Member

dimpase commented Dec 15, 2020

comment:20

rebased over #30343

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 15, 2020

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

0a9a194fix bug; avoid long computations on import - typo fixed

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 15, 2020

Changed commit from 3b61736 to 0a9a194

@vbraun
Copy link
Member

vbraun commented Dec 27, 2020

Changed branch from public/graphs/30356 to 0a9a194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants