Edges represent connections or relationships between two nodes and only those two nodes, but some relationships involve more than two nodes. Typically, such relationships take the form of multiple nodes belonging to a common group or sharing a common affiliation. This relationship structure can be set up by adding a second type of node representing the groups or affiliations. Such networks are called affiliation networks. This chapter describes how to work with complex relational data using affiliation networks, as well as how affiliation networks are represented and manipulated in NetworkX.
The topics that are covered in this chapter include the following:
- Nodes and affiliations: How data with complex relationships can be represented by affiliation networks and how to recognize an affiliation network structures
- Affiliation networks in NetworkX: How to create...