<< SzegedIndex.m

?SzegedIndex

Timing[SzegedIndex[Cycle[5], {{4, 2}, {5, 1}}, n]]

Timing[SzegedIndex[Cycle[5], {{4, 1}, {5, 2}}, n]]

Timing[SzegedIndex[Cycle[6], {{4, 1}, {5, 6}}, n]]

Timing[SzegedIndex[Cycle[6], {{4, 6}, {3, 1}}, n]]

g = AddEdge[Cycle[10], {5, 10}];
Timing[SzegedIndex[g, {{4, 1}, {6, 9}}, n]]