3
 g=RandomGraph[{5,6}]
 MinimumVertexColoring[g]

I am using MacOS and Wolfram Mathematica 10.4

bios
  • 401
  • 2
  • 9

1 Answers1

2

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.

vapor
  • 7,911
  • 2
  • 22
  • 55