# Revision history [back]

### How can I count the number of cycles of special length in a graph in sage?

I have tried the G.subgraph_search_count(graphs.CycleGraph(4))but is doesn't lead to the correct answer, any help would be appreciated.

### How can I count the number of cycles of special length in a graph in sage?

I have tried the G.subgraph_search_count(graphs.CycleGraph(4))but is it doesn't lead to the correct answer, any help would be appreciated.

 3 retagged FrédéricC 4294 ●3 ●37 ●89

### How can I count the number of cycles of special length in a graph in sage?

I have tried the G.subgraph_search_count(graphs.CycleGraph(4))but it doesn't lead to the correct answer, any help would be appreciated.