GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [doc] Add `plus_first` and `plus_second` semirings to docs · Issue #497 · python-graphblas/python-graphblas

[doc] Add plus_first and plus_second semirings to docs #497

New issue
Copy link
New issue
Copy link
Open
Open
[doc] Add plus_first and plus_second semirings to docs#497
Copy link

Description

@alugowski
alugowski
opened on Aug 30, 2023
Issue body actions

The plus_first and plus_second semirings are very useful for writing algorithms that only care about the nonzero structure of the matrix because they can work on any user matrix without copy or modification.

The documented list of semirings, https://python-graphblas.readthedocs.io/en/stable/user_guide/operators.html#semirings , does not include these, nor could I find them in the code anywhere.

I only found them when I saw pygraphblas had them and just tried the name. They're very useful! I think they belong in the docs.

Reacted by Sultan Orazbayev

Activity

  1. eriknw commented on Sep 5, 2023

    @eriknw
    eriknw
    on Sep 5, 2023
    Member
    More actions

    Agreed 💯, they're very useful and should be in the online docs.

    Related issue #410, which also include a partial implementation.

    To explore the API of python-graphblas, using tab-completion in IPython or Jupyter is very nice, but I know everybody doesn't use this workflow, and our docs should be complete regardless.

    Btw, we aim to expose 100% of features from SuiteSparse:GraphBLAS. I regard missing functionality as a bug.

  2. alugowski commented on Sep 7, 2023

    @alugowski
    alugowski
    on Sep 7, 2023
    ContributorAuthor
    More actions

    Good point, Jupyter tab completion does pick up a lot of this.

    My workflow is generally PyCharm's tab completion, which is generally very good but based on static analysis instead of Jupyter's runtime introspection.

    python-graphblas generally does not play well with static analysis at all, mostly due to the way the types are moved around at import time. Even gb.Matrix is not found. In my own projects a combination of defining things in __all__ and using type hints goes a long way, but i understand that most python-graphblas members are just a forward of whatever is exposed from C.

  3. eriknw
    added 2 commits that reference this issue on Nov 10, 2026

    Document the plus_first and plus_second semirings (GH #497)

    3b768f1

    Document the plus_first and plus_second semirings (GH #497)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.