0% found this document useful (0 votes)
72 views1 page

Detecting Arbitrage in Graphs

This Python code defines a function called is_arbitrage_exist that takes a graph as a parameter and returns True, and includes a TODO to fill in the function logic. It also contains a main method that runs a test against the is_arbitrage_exist function and exits with the result.

Uploaded by

Brajesh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views1 page

Detecting Arbitrage in Graphs

This Python code defines a function called is_arbitrage_exist that takes a graph as a parameter and returns True, and includes a TODO to fill in the function logic. It also contains a main method that runs a test against the is_arbitrage_exist function and exits with the result.

Uploaded by

Brajesh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

from test_framework import generic_test

def is_arbitrage_exist(graph):
# TODO - you fill in here.
return True

if __name__ == '__main__':
exit(
generic_test.generic_test_main("arbitrage.py", "arbitrage.tsv",
is_arbitrage_exist))

You might also like