A similar question is posted here .
I have an undirected graph with vertices V and Edge E I am looking for an algorithm to determine all the loop bases in this graph. An example of such a graph is shown below:

Now all the vertex coordinates are known ( in contrast to the previous question and contrary to the explanation in the above diagram), so you can find the smallest cycles covering the entire graph.
In this graph, it is possible that there are edges that do not form any cycles.
What is the best algorithm for doing this?
Here is another example you can take a look at:

Assuming that e1 is the edge that is selected first, and the arrow shows the direction of the edge.
graph
Graviton
source share