First time here? Check out the FAQ!
answered 2024-01-31 01:44:48 +0100
all_simple_paths is defined for directed graphs (instances of DiGraph in Sage) but not for general graphs. This should work:
all_simple_paths
DiGraph
G = digraphs.Complete(5) # not graphs.CompeteGraph(5) G.all_paths(1,3) G.all_simple_paths()