To plot the network graph, the steps are as follows:

- First, specify the edges for a directed graph:

> graph_directed <- graph(edges=c(1,2, 2,3, 2,4, 1,4, 5,5, 3,6, 5,6),n=6)Next specify the edges for an undirected graph using directed=FALSE parameter:> graph_undirected <- graph(edges=c(1,2, 2,3, 2,4, 1,4, 5,5, 3,6, 5,6),n=6, directed=FALSE)Now plot both the directed and undirected graph side by side:> par(mfrow=c(1,2))> plot(graph_directed)> plot(graph_undirected)

- Next, specify an edge list that has vertex names, and also mention the isolated list of names:

> graph_isolation <- graph( c( "Kuntal", "Maulim", "Maulim", "Yana","Yana","Kuntal", ...