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

Add edge_index_map() method to graph classes #324

Merged
merged 14 commits into from
May 27, 2021

Conversation

mtreinish
Copy link
Member

@mtreinish mtreinish commented May 18, 2021

This commit adds a new function edge_index_map() which will return a
mapping from edge indices to a tuple of the node indices and weight for
the edge.

TODO:

  • Add tests
  • Add release notes

This commit adds a new function edge_index_map() which will return a
mapping from edge indices to a tuple of the node indices and weight for
the edge.
@mtreinish mtreinish added this to the 0.9.0 milestone May 18, 2021
@mtreinish mtreinish requested a review from ajavadia May 18, 2021 20:31
@coveralls
Copy link

coveralls commented May 18, 2021

Pull Request Test Coverage Report for Build 883460719

  • 195 of 205 (95.12%) changed or added relevant lines in 3 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.03%) to 95.508%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/iterators.rs 161 171 94.15%
Files with Coverage Reduction New Missed Lines %
src/isomorphism.rs 1 94.59%
Totals Coverage Status
Change from base Build 882184262: -0.03%
Covered Lines: 5889
Relevant Lines: 6166

💛 - Coveralls

@mtreinish mtreinish changed the title [WIP] Add edge_index_map() method to graph classes Add edge_index_map() method to graph classes May 20, 2021
Co-authored-by: Ali Javadi-Abhari <[email protected]>
@mtreinish mtreinish merged commit 885f2de into Qiskit:main May 27, 2021
@mtreinish mtreinish deleted the edge-index-map branch May 27, 2021 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants