'visNetwork - Highlight specific nodes in graph, such as node with highest betweenness centrality

visNetwork - highlightNearest - show only connected edges to a selected node

This is for highlighting nearest edges. Is there a way I can build a visnetwork graph (with an igraph object) that automatically highlights certain nodes? Such as the node with the highest degree.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source