We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063cf5e commit cf50f07Copy full SHA for cf50f07
vt_graph_api/graph.py
@@ -458,10 +458,10 @@ def _add_group_nodes_from_json_data(self, json_graph_data_nodes):
458
}
459
"""
460
461
- self.group_nodes = dict([
462
- (node['entity_id'], node) for node in json_graph_data_nodes
463
- if node.get("type") == "relationship" and node.get(
464
- "entity_attributes", {}).get("relationship_type") == "group"])
+ self.group_nodes = {node['entity_id']: node for node in
+ json_graph_data_nodes
+ if node.get("type") == "relationship" and node.get(
+ "entity_attributes", {}).get("relationship_type") == "group"}
465
466
def _is_special_relationship_node(self, node):
467
"""Checks if a node is a special relationship node.
0 commit comments