Chapter 10 Advanced

At this point, if you have read the book up to here, you have been explored all the difference types of graphs that we can build with the twinetverse. Now we can introduce two more functions to bind edges together and form more complex graphs.

Let’s take two of our previous graphs and merge them into one. Let’s build a graph where we not only connect users to the hashtags they use but also connect the hashtags used in the same tweets together.

## Searching for tweets...
## Finished collecting tweets!

Technically, the two graphs we want to merge are below.

Building two graphs, as above, to then merge them into one would not be convienient. It works differently in graphTweets, we do not need to build two full graphs, we only need to bind edges together and thus can do it in one single pipe (%>%).

We just call gt_co_edges_bind (in essence the same function as gt_co_edges) to bind those edges to previously piped edges. This would totally work the other way around too.

You can unpack the network just as before, though we bound edges, everything remains the same from here onward.

## Found # 85 clusters

You can technically bind any edges together. However, be careful that the resulting graph still makes sense. For instance, binding two networks of co-mentions, one of hashtags and another of users, would result in two entirely separate graph as none of the users are connected to hashtags or vice verse.