Carl Woll writes:
DeleteCases[
Thread[Range[Length[vertices]] -> (VertexLabel /.
vertices[[All,2 ;;]])],
_ -> VertexLabel
];
I am just curious. Why the DeleteCases? In this simple example DeleteCases does nothing. In what kind of graph would it have a function?
with friendly greetings,
P_ter