# NOT RUN {
data(docnet)
subcomp1 = igraph::decompose.graph(docnet)[[2]]
subcomp2 = only.first.match(subcomp1)
igraph::get.data.frame(subcomp1)
igraph::get.data.frame(subcomp2)
graphics::par(mfrow=c(2,1))
document.network.plot(subcomp1, main='All matches')
document.network.plot(subcomp2, main='Only first match')
graphics::par(mfrow=c(1,1))
# }
Run the code above in your browser using DataLab