(g)
return any(any(edge.get(p) == 'time' for p in {'argmax', 'argmin', 'type'}) or 'num' in edge for edge in g.get('edgeSet', []))
Test if there are temporal relation in the graph.

    :param g: graph as a dictionary
    :return: True if graph has temporal relations, False otherwise
Test if there are temporal relation in the graph.
Test if there are temporal relation in the graph .
def graph_has_temporal(g):
    """
    Test if there are temporal relation in the graph.

    :param g: graph as a dictionary
    :return: True if graph has temporal relations, False otherwise
    """
    return any(any(edge.get(p) == 'time' for p in {'argmax', 'argmin', 'type'}) or 'num' in edge for edge in g.get('edgeSet', []))
def graph_has_temporal ( g ) : return any ( any ( edge . get ( p ) == 'time' for p in { 'argmax' , 'argmin' , 'type' } ) or 'num' in edge for edge in g . get ( 'edgeSet' , [ ] ) )