Skip to content
Discussion options

You must be logged in to vote

We currently don't provide any dedicated function for this, so this gets a bit cumbersome. How about

new_graph = copy.copy(receptor_graph)
for type in ligrand_graph.node_types + ligrand_graph.edge_types:
    for key, value in ligrand_graph[type].items():
        new_graph[type][key] = value

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by gcorso
Comment options

You must be logged in to vote
1 reply
@rusty1s
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants