I set up a simple test program nettest to try to see how it is done. The beginning of the program, which forces a warning, is below. It doesn't work. The program runs though, but Python throws the warning. My guess is that the problem is me :(, but I think the program follows the on-line documentation for warnings.
Thanks for your help.
import warnings
import igraph
def fxn():
warnings.warn ("g.get_shortest_paths",RuntimeWarning)
def nettest():
with warnings.catch_warnings():
warnings.simplefilter("ignore")
fxn()
g = igraph.Graph()
g.add_vertices(6)
g.add_edges([(0,1),(1,2),(3,4),(4,5),(5,3)])
shpath = g. get_shortest_paths (1,4)