`plot()` methods for the objects returned by [lcda_grasp()], [lcda_gr()] and [lcda_ecg()]. The result carries the graph it was fitted on, so `plot(res)` is enough; pass a graph as the second argument to draw the same partition on a different graph over the same vertex set.
What is drawn
The stored `x$graph` is the graph **as the kernels saw it**: [as_csr()] collapses multi-edges, so a multigraph is drawn (and was optimised) as its simple counterpart. Passing your own graph as `y` does not change that; it too is simplified before drawing, so that the figure always shows the graph the modularity was computed on. Vertex count and vertex order are preserved, only parallel edges are merged.
Examples
g <- igraph::make_graph("Zachary")
res <- lcda_grasp(g, B = 20, seed = 1)
set.seed(1)
plot(res)