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, is_subgraph() documentation polishing #19008
Comments
Commit: |
comment:2
I changed the wording a little at the same time, when I saw the small formatting error. No code changes. New commits:
|
Reviewer: Vincent Delecroix |
comment:3
Why is that - Tests whether ...
+ Return ``True`` if ... Your version is much less precise since you say nothing when the graph is not a subgraph. It is standard in Sage to write The rest looks fine. Vincent |
comment:4
Well, for now we have for example
On #18925 and #18941 I have used "return true if" -phrasing. That can of course be converted, but it should be uniform in all parts of the software. Was there some discussion about this in sage-devel? And btw, should every function document the output type? As an example, |
comment:5
Replying to @jm58660:
I don't think so. And I agree with you that it would better be uniform.
No. Neither the Vincent |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
Replying to @videlec:
Now there is at least explicit wording. I think that it is a place for another ticket to unify the documentation.
But developer guide says "This is not optional.": http://doc.sagemath.org/html/en/developer/coding_basics.html#documentation-strings . I think that this could be corrected. See #17693 comment 16. |
comment:9
- whether ``self`` is an *induced* subgraph of ``other`` that is if
- the vertices of ``self`` are also vertices of ``other``, and the
- edges of ``self`` are equal to the edges of ``other`` between the
- vertices contained in ``self`.
+ whether the graph is an *induced* subgraph of ``other`` that is if
+ the vertices of the graph are also vertices of ``other``, and the
+ edges of the poset are equal to the edges of ``other`` between the
+ vertices contained in the graph. Why |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:12
Replying to @sagetrac-mlapointe:
I had a temporary mental disorder. Corrected. |
Replying to @jm58660:
You should change the description so it suits to what the ticket finally does. |
This comment has been minimized.
This comment has been minimized.
comment:15
I know it is not the main purpose of the patch, but since you have changed |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
Replying to @sagetrac-mlapointe:
True. I was blind. Corrected. Needs review. |
Changed reviewer from Vincent Delecroix to Vincent Delecroix, Mélodie Lapointe |
Changed branch from u/jmantysalo/graphs__is_subgraph_documentation_formatting_error to |
There is a missing backstick at
generic_graph.py
in the documentation ofis_subgraph()
. This patch contains also some more polishing to that function.CC: @nathanncohen @sagetrac-mlapointe @nadialafreniere @sagetrac-sschanck
Component: documentation
Author: Jori Mäntysalo
Branch/Commit:
d45a30b
Reviewer: Vincent Delecroix, Mélodie Lapointe
Issue created by migration from https://trac.sagemath.org/ticket/19008
The text was updated successfully, but these errors were encountered: