I have a graph with over 2000 vertices, and I would like to change the size of around 25 of them. I know that I can specify the size of each of them individually, but I would like to be more efficient. I want something like the following to work, but it doesn't ... VertexSize -> {{1, 22, 53, 84, 105} -> 6} (Note that this example would like to make vertices 1, 22, 53, 84, 105 a size of 6.) Any thoughts?
1 Answer
$\begingroup$
$\endgroup$
0
Use Thread
.
Thread[{1, 22, 53, 84, 105} -> 6]
(* {1 -> 6, 22 -> 6, 53 -> 6, 84 -> 6, 105 -> 6} *)
VertexSize -> {Alternatives@@{1, 22, 53, 84, 105} -> 6}
? $\endgroup$