Skip to content

Commit

Permalink
removed get_edge_attribute_objects. Fix for issue #67
Browse files Browse the repository at this point in the history
  • Loading branch information
coleslaw481 committed Oct 20, 2019
1 parent b1202b9 commit 5b9ee59
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions ndex2/nice_cx_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,6 @@ def get_node_attribute_value(self, node, attribute_name):

return None



def get_node_attributes(self, node):
"""
Get the attribute objects of a node, where the node may be specified by its id or passed in as an object.
Expand All @@ -635,7 +633,6 @@ def get_node_attributes(self, node):
else:
return self.nodeAttributes.get(node)


def set_network_attribute(self, name, values=None, type=None):
"""
Set an attribute of the network
Expand Down Expand Up @@ -693,7 +690,6 @@ def set_network_attribute(self, name, values=None, type=None):

self.networkAttributes.append(net_attr)


def set_edge_attribute(self, edge, attribute_name, values, type=None):
"""
Set the value(s) of attribute of an edge, where the edge may be specified by its id or passed in an object.
Expand Down Expand Up @@ -742,27 +738,6 @@ def get_edge_attributes(self, edge):

return self.edgeAttributes.get(edge)

def get_edge_attribute_objects(self, edge, attribute_name):
"""
.. warning::
This method has been deprecated. Please use **get_edge_attributes()**
..
"""

raise Warning('get_edge_attribute_objects() is deprecated')
#edge_attrs = self.get_edge_attributes(edge)

#if edge_attrs:
# for e_a in edge_attrs:
# if e_a.get('n') == attribute_name:
# return e_a

#return None


def get_edge_attribute(self, edge, attribute_name):
"""
Get the edge attributes of an edge, where the edge may be specified by its id or passed in as an object.
Expand Down

0 comments on commit 5b9ee59

Please sign in to comment.