Are there any Matroid Intersection programs on graphs?

1 visualización (últimos 30 días)
Mihir Malladi
Mihir Malladi el 31 de En. de 2022
Respondida: Vaibhav el 6 de Oct. de 2023
I have a graph which is colored and those colors are the weights on the edges. I want to perform matroid intersection which takes in input graphic matroid(all possible acyclic combinations of the edges) and partition matroid (of the colors/weights which are integers) and performs the intersection. I found a matlab code on Matroid Intersection online but I am confused on how to use it.
Kindly let me know if there is any software to do this.

Respuestas (1)

Vaibhav
Vaibhav el 6 de Oct. de 2023
Hi Mihir
I understand that you are looking for matroid intersection programs on graphs.
For matroid intersection algorithms, you can explore the documentation available on File Exchange at the following link:
There is a minor issue with the code, Single "end" is missing at the end of the program.
Also, to use the function at the given link you can use the below example for the reference.
% Define the graph and its weights
E = [1 2 3 4 5];
S1 = [1 0 1 0 1; 1 0 1 1 0];
S2 = [1 0 1 0 0; 0 1 0 1 0; 0 0 0 0 1];
% Call the MatroidIntersection function
I = MatroidIntersection(E, S1, S2);
% Display the result
disp(I);
Hope this helps!
Regards,
Vaibhav

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by