When defining a graph whose vertices are sets e.g. the Kneser graph, how does Mathematica interpret the vertices?
I am having trouble highlighting vertices when I define vertices with sets, but for some reason highlighting edges creates no problem:
HighlightGraph[Graph[{{1, 2} <-> {3, 4}}], {{1, 2} <-> {3, 4}}]
This creates an edge with the edge highlighted, as expected. However
HighlightGraph[Graph[{{1, 2} <-> {3, 4}}], {1,2}]
does not highlight the vertex corresponding to {1,2}
.
I originally had a colleague help write a program to construct the general Kneser graph. However, when using FindIndependentVertexSet
, it lists the correct vertices (sets), but when using HighlightGraph
, it doesn't highlight anything; using FindHamiltonianCycle
, I can highlight the cycle though.