has_edge_attribute
Checks the edges of the input graph for the specified edge attribute.
Determines whether an edge attribute that is specified by the name parameter exists in all or any edges in the input graph.
Parameters
- g : SAS graph object
-
Specifies the input graph to assess.
- name : str
-
Specifies the name of the edge attribute.
- all_edges : bool, optional
-
Specifies whether or not to check for the existence of the edge attribute in all or any of the edges. The default is False.
Returns
- bool
-
If the all_edges parameter value is True, the value True is returned if that edge attribute exists in all edges; otherwise the value False is returned. If the all_edges parameter value is False, the value True is returned if at least one edge in the graph has that specified edge attribute.