counting cycles and paths in simple graphs

78 Views Asked by At

I'm newly studying graphs in my school courses and I've been facing this common type of questions about how many cycles/paths are there between some vertices I asked my teacher for a simpler or more algorithmic way to count them but he said except for Kn graphs. so I started to search for such an algorithms and I found out there are such algorithms but I have no idea how to use them(as I said I'm a high-school student). these are the papers I took a look at: https://www.sciencedirect.com/science/article/abs/pii/0020019094001510 http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.156.345 so I'm seeking a way to solve such problems more efficiently and with less probability of making ridiculous mistakes. any help is appreciated