I am developing a program that shows a random walk on a graph.
When the walker enters a vertex, I want to highlight it.
When the walker leaves the vertex and enters the next vertex, I want to remove highlight from the first vertex, and highlight the next one.
Besides, user can click some vertices as targets. If the random walker hit any one of those targets, the program ends. Here I also want to set different styles to those target vertices.
I've tried the following,
MyGraph g = new MyGraph();
g.AddVerticesAndEdge(new MyEdge("hello", "world"));
layout.Graph = g;
layout.HighlightVertex(new MyVertex("world"), null);
I just couldn't figure out what to put as the second argument for HighlightVertex()
layout.HighlightVertex(TVertex, object); // object?? what type of object??
My second question is, can the highlighting change the shape, color and size??
For example, changing from a small green ellipse into a big red rectangle. How can I do it??
Thank you in advance. Happy new year!!!