Create an "igraph object" with the p2p query and a corresponding network visualization, with additional features for community detection using the network_p2p() function.
Check out the documentati...
Hi VI_Migration - this is a great question, and actually can be a great addition to the documentation examples!
The plots on `igraph` can be best customized with a combination of `ggplot2` and `ggraph`. Here is a simple code example, where this effectively asks `network_p2p()` to export an igraph object and then customize a graph from "scratch" with the `ggplot2` and `ggraph` libraries:
This code chunk generates a chart like the below, where the colours have been custom-defined. Since this is `ggplot2`, you can customize the colours in any way you want:
The slight disadvantage would the `ggraph` method is that it'll be more intensive to compute for large graphs. However, this may provide a workaround if you test the visualization first with a small graph subset before running it on more data. Does this help? (There could be alternative solutions, but this is the most straightforward one I can think of)