From c69539abffbee48a375358b8c221b38e2f9bc92f Mon Sep 17 00:00:00 2001 From: CalCraven <54594941+CalCraven@users.noreply.github.com> Date: Thu, 8 Apr 2021 10:47:36 -0500 Subject: [PATCH] Update gmso/formats/networkx.py Co-authored-by: Umesh Timalsina --- gmso/formats/networkx.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gmso/formats/networkx.py b/gmso/formats/networkx.py index 356fa246a..a84b832ad 100644 --- a/gmso/formats/networkx.py +++ b/gmso/formats/networkx.py @@ -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: