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

Consider defining additional generics for a graph #27

Open
EeethB opened this issue Mar 2, 2023 · 0 comments
Open

Consider defining additional generics for a graph #27

EeethB opened this issue Mar 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@EeethB
Copy link
Collaborator

EeethB commented Mar 2, 2023

Throughout other functions that utilize graphs, it's common to be calling length(graph$hypotheses) or dimnames(graph$transitions), etc. So here are a few generics that might be useful to define differently for a graph

  • length.initial_graph as length(graph$hypotheses)
  • names.initial_graph as names(graph$hypotheses)
  • dimnames.initial_graph as dimnames(graph$transitions)
  • str.initial_graph with prettier printing of some sort? Need to be careful with this one, since it's so useful for exploring underlying structure outside of printing
  • seq.initial_graph as seq_along(graph$hypotheses)
  • ...Others?
@EeethB EeethB assigned EeethB and unassigned EeethB Mar 2, 2023
@EeethB EeethB added enhancement New feature or request good first issue Good for newcomers labels Mar 2, 2023
@EeethB EeethB removed the good first issue Good for newcomers label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant