Skip to content

Commit

Permalink
Update gmso/formats/networkx.py
Browse files Browse the repository at this point in the history
Co-authored-by: Umesh Timalsina <[email protected]>
  • Loading branch information
CalCraven and umesh-timalsina authored Apr 8, 2021
1 parent 64e1a58 commit c69539a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gmso/formats/networkx.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,10 +809,10 @@ def get_edges(networkx_graph, atom_name1, atom_name2):
if atom_name1 and atom_name2:
for edge in list(networkx_graph.edges):
if (
edge[0].name == atom_name1
and edge[1].name == atom_name2
or edge[0].name == atom_name2
and edge[1].name == atom_name1
(edge[0].name == atom_name1
and edge[1].name == atom_name2)
or (edge[0].name == atom_name2
and edge[1].name == atom_name1)
):
selectable_dict = create_dict_of_labels_for_edges(selectable_dict, edge)
elif atom_name1:
Expand Down

0 comments on commit c69539a

Please sign in to comment.