JuliaGraphs / JuliaGraphs/MetaGraphsNext.jl

@labels macro

Open
#60 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Julia
Stars
93
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Here's one option for making working with labels easier:

Right now we have for example Graphs.outneighbors(meta_graph::MetaGraph, code::Integer) and outneighbor_labels(meta_graph::MetaGraph, label).

Maybe we could have a general pattern where we add a _labels suffix to a Graphs function to make it work with labels instead of code?

We could then have a @labels macro that attaches the _label suffix to all surface-level Graphs function calls?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names Graphs.outneighbors, outneighbor_labels, and a proposed @labels macro, but no files or tests. First inspect how surface-level Graphs calls and label-based methods are currently defined; the scope and expected behavior need agreement before implementation, with completion defined by an accepted macro design and coverage for the affected calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.