[joss] Questions about graph creation
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
Research direction
Start with the PyGraph and extend_from_edge_list entry points shown in the issue, then check the existing API documentation for named edge lists and node lookup. Done means the supported approach for string or numeric node names and index lookup is clearly documented, or the missing API behavior is identified.
Written by the indexing model from the issue text.
Description
This is not a bug report, just a question. I hope it's fine to ask it here, since there is currently no forum-like alternative for support questions.
How can I create a graph from a list of edges in terms of node names (not indices)? For example, I can create an undirected graph from an edge list given in terms of indices like this:
g=rx.PyGraph()
g.extend_from_edge_list([(0,1),(1,2)])
But what if I have node names, e.g. [('a', 'b'), ('b', 'c')]? I suspect that I am missing some simple way to handle such edge lists. Or perhaps the list is [(10,20),(20,5)], where the three nodes of the graphs would be named 10, 20 and 5.
Once the graph is created, how can I refer to nodes by name instead of by their index? How can I look up the index of node 'c', for example?
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 220
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Qiskit/rustworkx
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
documentation
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 65/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
All issues in Qiskit/rustworkx
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100