g=RandomGraph[{5,6}]
MinimumVertexColoring[g]
I am using MacOS and Wolfram Mathematica 10.4
g=RandomGraph[{5,6}]
MinimumVertexColoring[g]
I am using MacOS and Wolfram Mathematica 10.4
It is because MinimumVertexColoring is from the old Combinatorica package, and the data format of Graph is different from the new Graph in V10. To fix this problem, you will need to convert the new atomic graph object to the old representation.
Needs["Combinatorica`"]; Needs["GraphUtilities`"];
g = System`RandomGraph[{5, 6}];
cg = ToCombinatoricaGraph[g];
MinimumVertexColoring[cg]
Since RandomGraph is in both Context, it's better to call with explicit Context.
ToCombinatoricaGraph re-adds Combinatorica to the context path every time it is called. I think the most convenient thing is to define a custom toCombinatoricaGraph which avoids this.
– Szabolcs
Jul 07 '16 at 10:23
ToCombinatoricaGraph. It has Needs["Combinatorica`"]
– Szabolcs
Jul 07 '16 at 10:25