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 SiblingMut allowing modification of a SiblingGraph #522

Merged
merged 35 commits into from
Sep 18, 2023
Merged

Commits on Sep 12, 2023

  1. Configuration menu
    Copy the full SHA
    e28c60a View commit details
    Browse the repository at this point in the history
  2. Implement HugrView::get_{parent,{node,op}type,metadata} once only, wi…

    …th valid_node checks
    
    ==> SiblingGraph::new's "get_optype" will implicitly check the root is in the base view.
    
    This does mean some unnecessary index checking for &Hugr's. We could continue to
    reimplement those methods for AsRef<Hugr> if we want to avoid this inefficiency.
    Alternatively we could make UnmanagedDenseMap return Options rather than unwrapping.
    
    Some other ugly alternative/hacks for returning default values - DEFAULT_{NODE,OP}TYPE
    acl-cqc committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    f2b64e1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    17c3a30 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8475d12 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    aa88f75 View commit details
    Browse the repository at this point in the history
  6. test

    acl-cqc committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    487c795 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ea70450 View commit details
    Browse the repository at this point in the history
  8. Remove debug println

    acl-cqc committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    430e4e6 View commit details
    Browse the repository at this point in the history
  9. HugrMut::add_op_with_parent

    acl-cqc committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    e98562b View commit details
    Browse the repository at this point in the history
  10. Add SiblingMut

    acl-cqc committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    f42f666 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2930a3b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b4b4e5e View commit details
    Browse the repository at this point in the history
  13. fn depth: take &Hugr

    acl-cqc committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    f331bfd View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. use NodeMetadata::Null

    acl-cqc committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    c789969 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6507bbc View commit details
    Browse the repository at this point in the history
  3. new -> try_new

    acl-cqc committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    929ecf4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    663f47f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1839b70 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b37fbc7 View commit details
    Browse the repository at this point in the history
  7. Missed fmt

    acl-cqc committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    e702acb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ee3892e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2c47e54 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2023

  1. Configuration menu
    Copy the full SHA
    341a4e9 View commit details
    Browse the repository at this point in the history
  2. correct comments

    acl-cqc committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    55f2510 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    de48382 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f739eef View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8848601 View commit details
    Browse the repository at this point in the history
  6. Comments, move reconnect

    acl-cqc committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    3f3a71d View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. SiblingGraph::new_unchecked

    acl-cqc committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    eee3026 View commit details
    Browse the repository at this point in the history
  2. Properly filter, and don't unwrap, by constructing a temp SiblingGrap…

    …h and collect vec into iter
    acl-cqc committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    12c5a7c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ca35146 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f0859c7 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2023

  1. Remove unused EMPTY_GRAPH

    acl-cqc committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    b3124a3 View commit details
    Browse the repository at this point in the history
  2. comments

    acl-cqc committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    b67dba0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dc4e1a2 View commit details
    Browse the repository at this point in the history