Skip to content

Graphviz - #644

Open
james-d-mitchell wants to merge 15 commits into
digraphs:mainfrom
james-d-mitchell:graphviz
Open

james-d-mitchell wants to merge 15 commits into
digraphs:mainfrom
james-d-mitchell:graphviz

Conversation

@james-d-mitchell

Copy link
Copy Markdown
Member

This is a reworking of #639, which goes a bit further than #639 in removing the old stuff for displays. This PR doesn't introduce any breaking changes except that we now require the graphviz package. So this PR shouldn't be merged until there is a release of `graphviz'.

@james-d-mitchell

james-d-mitchell commented May 7, 2024 •

Copy link
Copy Markdown
Member Author

TODO:

  • doc
  • tests for code coverage

@james-d-mitchell james-d-mitchell added major A label for PRs or issues that are major in some sense. refactor Label for PRs or issues related to refactoring code labels May 8, 2024
@james-d-mitchell
james-d-mitchell force-pushed the graphviz branch 10 times, most recently from b35efd9 to d4b6e10 Compare May 10, 2024 12:35
@james-d-mitchell
james-d-mitchell force-pushed the graphviz branch 5 times, most recently from 19fe156 to 5416f88 Compare May 15, 2024 12:09
@james-d-mitchell

Copy link
Copy Markdown
Member Author

The CI will likely fail here until:

gap-packages/GraphvizForGAP#21

is merged.

@james-d-mitchell james-d-mitchell added the gap-days-brussels-2025 Label for things we might work on in Brussels label Apr 7, 2025
@james-d-mitchell

Copy link
Copy Markdown
Member Author

This might be a bit much for this week, but maybe not.

@james-d-mitchell james-d-mitchell removed the gap-days-brussels-2025 Label for things we might work on in Brussels label Apr 9, 2025

@wilfwilson wilfwilson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really cool!

Comment thread doc/main.xml Outdated
Comment thread doc/display.xml Outdated
Comment thread doc/display.xml
<Description>
These functions produce &graphviz; objects representing the digraph
<A>D</A>, where the vertices in the list <A>verts</A>, and edges
between them, are drawn with color <A>color1</A> and all other vertices

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the text of the Digraphs manual, we sometimes use the US spelling color and sometimes we use the British spelling colour. I suggest we standardise at some point.

Comment thread .github/workflows/gap.yml Outdated
Comment thread .github/workflows/gap.yml Outdated
Comment thread etc/code-coverage-test-c.py Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this file part of this PR? Should it be a separate one?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, removed!

Comment thread gap/cliques.gi
@wilfwilson
wilfwilson force-pushed the graphviz branch 2 times, most recently from 4aee2cd to e5a6048 Compare October 3, 2025 13:50
@wilfwilson

Copy link
Copy Markdown
Collaborator

I've rebased this on main to resolve the merge conflict and see how the tests are running, and remove a couple of obsolete/untracked files, hope you don't mind @james-d-mitchell.

@james-d-mitchell

Copy link
Copy Markdown
Member Author

Thanks @wilfwilson don't mind even a little bit

@james-d-mitchell

Copy link
Copy Markdown
Member Author

@fingolfin

@codecov

codecov Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.16667% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.98%. Comparing base (fcfe652) to head (17baf40).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
gap/deprecated.gi 96.77% 3 Missing ⚠️

❌ Your patch check has failed because the patch coverage (99.16%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #644      +/-   ##
==========================================
+ Coverage   97.45%   97.98%   +0.53%     
==========================================
  Files          50       52       +2     
  Lines       21189    21142      -47     
  Branches      639      639              
==========================================
+ Hits        20649    20717      +68     
+ Misses        475      360     -115     
  Partials       65       65              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@james-d-mitchell

Copy link
Copy Markdown
Member Author

@mtorpey this is the PR I was talking about

Comment thread gap/display.gi

# TODO JDM is not completely sure this is implemented in the spirit of the
# other functions in this file.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with the method as it's implemented.

I see what you mean. We've got

  • Functions that make a simple GraphViz object and mutate it till it's finished; and
  • This function, which prepares all the data and passes it into an existing function.

But I think that's a sensible use of abstraction.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major A label for PRs or issues that are major in some sense. refactor Label for PRs or issues related to refactoring code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants