I’m sorry—I probably misunderstood the concept of connectedness in a directed graph.
I converted it to an undirected graph, and now it seems to work fine.
However, for directed multigraphs, how can I get all the cutsets in a format similar to Kirchhoff’s current law equations in electrical circuits (similar to IncidenceMatrix)?
The conversion to an undirected graph allows me to find the cutsets, but they are just sets of edges without any reference direction.
Do you mean that you want the result to be set of directed edges, but you want to compute cuts while ignoring edge directions?
I think it would be a useful feature to have a DirectedEdges option that allows ignoring edge directions in directed graphs. Can you open an issue to suggest this feature, so I wouldn’t forget?
Assume that for a cutset in a directed graph, you can write an equation like e1 + e4 - e5 - e6 = 0
where e1 and e4 go in one direction across the cut, and e5 and e6 go in the opposite direction.
So instead of just a list of edge cut like {e1, e4, e5, e6}, I want something that also captures the direction of each edge relative to the cut, such as: e1 + e4 - e5 - e6 = 0, or {e1, e4, -e5, -e6}, or {-e1, -e4, e5, e6}, etc.