 Research
 Open Access
 Published:
Semisupervised graph labelling reveals increasing partisanship in the United States Congress
Applied Network Science volume 4, Article number: 62 (2019)
Abstract
Graph labelling is a key activity of network science, with broad practical applications, and close relations to other network science tasks, such as community detection and clustering. While a large body of work exists on both unsupervised and supervised labelling algorithms, the class of random walkbased supervised algorithms requires further exploration, particularly given their relevance to social and political networks. This work refines and expands upon a new semisupervised graph labelling method, the GLaSS method, that exactly calculates absorption probabilities for random walks on connected graphs. The method models graphs exactly as discretetime Markov chains, treating labelled nodes as absorbing states. The method is applied to roll call voting data for 42 meetings of the United States House of Representatives and Senate, from 1935 to 2019. Analysis of the 84 resultant political networks demonstrates strong and consistent performance of GLaSS when estimating labels for unlabelled nodes in graphs, and reveals a significant trend of increasing partisanship within the United States Congress.
Introduction
Graph labelling is concerned with the problem of estimating the labels of one or more nodes within a graph, where an association between the graph’s structure and the distribution of labels is assumed to exist. Many graph labelling algorithms exist, both supervised (Azran 2007; Hassan and Radev 2010; Talukdar et al. 2008) and unsupervised (Perozzi et al. 2014; Pons and Latapy 2005; Zhou and Lipkowsky 2004). In both approaches, a graph comprises unlabelled and labelled nodes, and the algorithms seek to estimate the labels of the unlabelled nodes. While a diverse range of graph labelling methods exist (Fortunato 2010; Hamilton et al. 2017), this work focusses on the class of dynamical and statistical inference methods that use random walks.
One prominent application of network science is in the analysis of political networks (Victor and Montgomery 2017; Ward et al. 2011), including the labelling of nodes in political voting networks. Previous works have examined methods to locate individual politicians within a multidimensional political spectrum (Poole and Rosenthal 1985; 2001), the detection of voting blocs or communities within a political voting network (Waugh et al. 2009), and an analysis of partisanship trends reflected in voting networks from the United States Congress (Andris et al. 2015; Poole and Rosenthal 1984). This work presents an analysis of a large collection of United States Congressional roll call voting networks, using a semisupervised graph labelling method to determine the party affiliation of individuals. Changes in partisanship over time are also examined, with results in accordance with previous studies (Andris et al. 2015; Poole and Rosenthal 1984).
Related work
Random walkbased graph labelling methods
In unsupervised algorithms, the graph is organised into clusters, without consideration of the labelled nodes. Once clustered, labels for unlabelled nodes in the graph can be estimated based on the clusters to which labelled nodes belong. However, cases may arise where an identified cluster contains no labelled nodes, or where a cluster contains multiple nodes with different labels, creating uncertainty as to how labels should be estimated for nodes in such clusters.
The Walktrap algorithm is one commonly used random walkbased unsupervised graph labelling method (Pons and Latapy 2005). Walktrap searches for densely connected subgraphs by simulating short random walks on a graph, reasoning that short walks are more likely to remain in the same cluster than to leave it. Walktrap quantifies the similarity between nodes using a distance metric, then recursively merges identified clusters based on short random walks, providing a hard classification for each node. Because Walktrap does not use information about labelled nodes, there is no generally accepted method for estimating the labels for unlabelled nodes based on the clusters it identifies.
A more recent unsupervised graph labelling method, DeepWalk, combines random walks and natural language processing tools (Perozzi et al. 2014). DeepWalk uses short, truncated random walks to explore the neighbourhood for every node in a graph, as a means of community detection. The results of these random walks are then combined with a neural language model to generate a lowdimensional representation of the graph. The latent community membership information encoded by this lowdimensional embedding can then be used for multilabel classification tasks.
Unlike unsupervised algorithms, supervised algorithms utilise the information contained in labelled nodes when estimating the labels of unlabelled nodes. A common approach is to treat labelled nodes as absorbing states and unlabelled nodes as transient states in a discretetime Markov chain (DTMC), and estimate the absorption probabilities or expected times to absorption for all transient states in the chain. Labels for each unlabelled state can then be estimated using the approximate probabilities or times. However, while existing supervised and semisupervised methods use both labelled nodes and the graph’s structure to estimate labels, they only approximate absorption probabilities and times, rather than calculating them exactly.
The Rendezvous algorithm (Azran 2007) labels nodes in a semisupervised setting by constructing a simplified, “rendezvous” graph, where edges are drawn from an unlabelled node to only its M nearest neighbours. M is chosen to be as small as possible while ensuring that each unlabelled node in the rendezvous graph is connected to at least one labelled node. Once the rendezvous graph has been constructed, edge weights are calculated using a Euclidean distance metric, and absorption probabilities are calculated using the eigenvalues and eigenvectors of the rendezvous graph’s transition matrix. Absorption probabilities for nodes in the rendezvous graph are then used to estimate the labels of nodes in the full graph.
Another semisupervised graph labelling method seeks to label nodes in a binary setting according to expected time to absorption, rather than absorption probability (Hassan and Radev 2010). The “Censored Time” method simulates steplimited random walks over a graph, recording the number of steps taken for all walks that are absorbed before being terminated by the step limit. The censored times to absorption for absorbed walks are used to approximate the conditional expected time to absorption in each labelled node in the graph. A “hard” binary classification is used to estimate labels according to the lowest censored conditional time to absorption.
Political science and networks
Analysis of United States Congressional voting data is a popular activity within the field of political science and political networks, in part because large amounts of voting data are freely available (Lewis et al. 2019). Various attempts have been made to analyse voting trends within Congressional voting data, including modelling Congresses as political networks, where nodes represent individual politicians, and edges capture some relationship between them.
DWNOMINATE (Poole and Rosenthal 2001), and its predecessors, DNOMINATE (Poole and Rosenthal 1985) and WNOMINATE, represents one of the most detailed attempts to study voting behaviour and trends in the United States Congress. A multidimensional scaling method, DWNOMINATE models individual politicians as points embedded in multidimensional space. Each point, representing the politician’s true political alignment, can be estimated by analysing historical voting records. Individuals with similar ideologies (as reflected by their voting records) are spatially “close” to one another, while individuals with differing ideologies are “distant”. Amongst many other applications, DWNOMINATE is notable for its use in analysing changes in partisanship over time (Poole and Rosenthal 1984).
More recent work also discusses changes in partisanship in roll call voting networks over time (Andris et al. 2015). The work examines pairs of nodes within roll call voting networks, modelling the probability distibutions for cooperation between politicians (edges between nodes) from the same party and from opposing parties. A significant longterm trend of increasing partisanship and decreasing interparty cooperation is identified; increasing the probability of edges between nodes from the same party and decreasing the probability of edges between nodes from opposing parties. The work also makes reference to the continued, though diminishing, presence of “supercooperators”  members who cooperate across party lines  in Congress.
Separate work examining United States Congressional voting data uses modularity to measure political polarisation (Waugh et al. 2009). This work detects voting blocs or communities within Congressional roll call voting networks without making assumptions that rely on the twoparty system, revealing more (and more varied) groups than simply Democrats and Republicans. The composition and behaviour of blocs is observed to vary significantly over time, as are the strengths of connections between blocs. The work reveals not only increases in partisanship over time, but points to a possible underestimation of partisanship by other methods in Congresses with weaker party structure.
Contributions
This work expands upon a new semisupervised graph labelling method, the Graph Labelling SemiSupervised (GLaSS) method, using random walks to absorption (Glonek et al. 2018). The method models a graph as a DTMC, where transient states correspond to unlabelled nodes, and absorbing states correspond to labelled nodes. The transition matrix P, for the DTMC, is formed from the graph’s weighted adjacency matrix by normalising the weighted outdegree of each node in the network. From careful construction of P, the probability of absorption in each absorbing state can be calculated exactly, and these probabilities can then be used to estimate the label for every node corresponding to a transient state in the DTMC.
By calculating exact absorption probabilities and expected times to absorption, the GLaSS method provides better label estimates than contemporary supervised methods, which rely on approximations of these quantites (Glonek et al. 2018). By utilising the information contained in labelled nodes in the graph, GLaSS also provides a clear method for estimating the label of unlabelled nodes using quantities that are meaningful and interpretable, unlike unsupervised random walk methods.
This work also contributes to existing work on political networks, through the analysis of a large collection of US Congressional roll call voting networks. In particular, this work contains the first analysis of roll call voting networks using a random walkbased graph labelling method, while also identifying notable trends within the House of Representatives and the Senate. The GLaSS method is able to detect and confirm rising partisanship within the House of Representatives and the Senate (Andris et al. 2015), while also identifying possible historical periods of reduced partisanship.
This work formally introduces the GLaSS method, describes, in detail, the data to be analysed, presents a full description of all analyses performed, and discusses the results of this analysis and possible areas of further work.
Method
Consider an undirected graph G = (V, E) comprising n nodes, V = {v_{1},...,v_{n}}, connected by a set of positive realweighted edges E. Define the weighted adjacency matrix A=[a_{i, j}], where a_{i, j} = a_{j, i} records the weight of the edge connecting v_{i} and v_{j}, and a_{i, j} = 0 if no edge connects v_{i} and v_{j}. Suppose the first u nodes in G are unlabelled, and the remaining ℓ nodes in G are labelled, where n = u+ℓ, and construct the sets U = {1,...,u} and L = {u+1,...,n} to index the unlabelled and labelled nodes of G, respectively. Arrange A as
where A_{J, K} describes the weighted edges connecting nodes indexed by J to nodes indexed by K.
Consider a random walk on G, described by a discretetime Markov chain (DTMC) where all unlabelled nodes map to transient states and all labelled nodes map to absorbing states. Let X_{t} denote the state of the chain at time t. For all transient states in the DTMC (unlabelled nodes in G), calculate the transition probabilities for the DTMC using the adjacency matrix A, where
is the probability that the DTMC moves to state j at the next time step, given that the DTMC is currently in state i. For all absorbing states in the DTMC (labelled nodes in G), by definition,
Gather these probabilities into submatrices P_{U, U} (i, j∈U), P_{U, L} (i∈U, j∈L), P_{L, U} (i∈L, j∈U), and P_{L, L} (i, j∈L). Note that, by definition, P_{L, U}=0 and P_{L, L}=I. Then, construct the transition matrix
The u×u matrix P_{U, U} governs transitions between transient states, and the u×ℓ matrix P_{U, L} governs transitions from transient states to absorbing states.
DTMC absorption probabilities
Let h_{i, j} be the probability that the DTMC is eventually absorbed in state j,∀ j∈L, given that the chain starts in state i,∀ i∈U. Define the matrix of absorption probabilities H = [h_{i, j}]. H is restricted to have u rows and ℓ columns, corresponding to the u transient states and ℓ absorbing states of the DTMC, respectively. Then H can be formally calculated as the minimal nonnegative solution to
where I_{u} is the u×u identity matrix (Grinstead and Snell 2012).
Semisupervised graph labelling
Given a graph G and the matrix of absorption probabilities H, let the random variable Y_{i} be the label of an unlabelled node v_{i}, and let x_{j} be the label of a labelled node v_{j}. The distribution over Y_{i} can be directly derived from H, for all i ∈ U, as follows:
where \(\mathbbm {1}\) is the indicator function, taking value 1 if its argument is true, and 0 otherwise.
DTMC expected times to absorption
Let t_{i} be the expected number of time steps before the DTMC is absorbed in any absorbing state, given that the chain starts in state i. Define the vector of expected times to absorption t = (t_{1},...,t_{u})^{T}, where the u elements of t correspond to the u transient states of the DTMC. Then t can be calculated as the minimal nonnegative solution to
where c is a column vector of length u whose entries are all 1 (Grinstead and Snell 2012).
The graph labelling semisupervised (GLaSS) method
Consider a graph G, with u unlabelled nodes and ℓ labelled nodes, and suppose that all labelled nodes have one of two labels; either K_{1} or K_{2}. From the weighted adjacency matrix A, construct the transition matrix P, as in (1). Using P, calculate the vector of expected times to absorption t, as in (6). The expected times to absorption may, optionally, be used as a filtering criterion; nodes with a large expected time to absorption, relative to the disibution of t_{i} over all nodes in the graph, may be excluded from further analysis. Once nodes have been optionally filtered using t, calculate the matrix of absorption probabilities H, by (4), and calculate P(Y_{i}=K_{1}) and P(Y_{i}=K_{2}), for all i∈U, as in (5). Because P(Y_{i}=K_{1})+P(Y_{i}=K_{2})=1, only one probability is required to classify the unlabelled nodes.
Once P(Y_{i}=K_{1}) and P(Y_{i}=K_{2}) have been obtained, these probabilities may be used to estimate labels for nodes in G. For the purposes of this analysis, nodes are classified in the following way: Suppose that m of the u unlabelled nodes in G have a true label K_{2}, and that the remaining (u−m) unlabelled nodes have a true label K_{1}. That is, the ratio of nodes with label K_{1} to nodes with label K_{2} is known, but which nodes should bear those labels is not. Sorting the probabilities P(Y_{i}=K_{1}) from smallest to largest, the m^{th} order statistic (the m^{th} smallest probability) is chosen as a threshold α, and a binary classifier is implemented. If P(Y_{i}=K_{1})>α, estimate the label for node v_{i} as K_{1}; otherwise, if P(Y_{i}=K_{1})≤α, estimate the label for node v_{i} as K_{2}. Thus, α is chosen to assign a label of K_{1} to the (u−m) nodes deemed most likely to have that label, and assigns a label of K_{2} to the remaining m unlabelled nodes in G.
Using this method, it is possible to estimate the label for every unlabelled node in G. This method forms a modification and extension to the GLaSS method (Glonek et al. 2018), a graph labelling method in a semisupervised setting. Hereafter, we refer to this modification as “the GLaSS method”.
Data
Validating the GLaSS method requires graphs with a clear community structure and known labels for all nodes. To emulate a graph with few known labels, only a small subset of all known labels will be used by GLaSS, with the remaining labels withheld to emulate “unlabelled” nodes in the graph. All labels estimated by GLaSS can then be compared to actual, withheld labels, to assess performance. United States roll call voting data are chosen to validate the GLaSS method.
In the United States House of Representatives (the House) and the Senate, parliamentary procedure occasionally gives rise to roll call votes. In a roll call vote, the vote of every member of the House or the Senate is recorded, making it possible to see which members voted the same way. Roll call voting data for the House and the Senate can be modelled as an undirected graph, where each node represents a member of Congress, and a positive integerweighted edge records the number of times respective members voted the same way. Roll call voting data for the House and the Senate are modelled as separate graphs.
The results of roll call votes in the House and the Senate for 42 separate Congresses, between 1935 and 2019^{Footnote 1}, have been collected for analysis, and modelled as 84 separate undirected graphs. The data has been made available on Voteview (Lewis et al. 2019) and Figshare for analysis^{Footnote 2}. For simplicity, in each Congress, the following rules are applied:

1
Only “yea” and “nay” votes are considered.

2
Only members whose party affiliation is Democrat or Republican are considered.

3
In cases where a member’s party affiliation changes during a meeting of Congress, their party affiliation at the time they were elected is used.

4
In rare cases, a member of Congress does not sit for the entire meeting of Congress, and their seat is taken by a new member. In these cases, the voting records of both members are retained^{Footnote 3}.

5
In both the House and the Senate, votes where the Democrat and Republican leader cast the same vote (either “yea” or “nay”) are not considered, as they provide no information about partisanship.

6
In both the House and the Senate, multiple members may serve (nonconcurrently) as party leader. In these cases, the vote cast by the party leader at the time the vote was held is considered when implementing rule 5.

7
In the House, multiple members may serve (nonconcurrently) as Speaker of the House. In cases where only one Speaker is active for the meeting of Congress, votes cast by the Speaker are not considered^{Footnote 4}. In cases where multiple Speakers are active, votes cast by the first Speaker (chronologically) are not considered, but votes cast by subsequent Speakers are considered^{Footnote 5}. This rule does not apply to the President Pro Tempore of the Senate.
Because the party affiliation of each member of Congress is known, all nodes in each graph are labelled. For these analyses, only the labels of nodes corresponding to the Democrat and Republican Leaders are retained, thus all other nodes in each graph are “unlabelled”. For example, the graph of the 74^{th} House comprises 429 nodes, but only three nodes (corresponding to the two Democrat leaders and one Republican leader) are labelled; the remaining 426 nodes in the graph are “unlabelled”. Labels for these “unlabelled” nodes are used only to assess the accuracy of labels estimated by GLaSS. All graphs are either fully connected or nearly fully connected, and detailed summaries of each graph of the House and the Senate are contained in Tables 1 and 2, respectively.
Results
Each House and Senate is modelled as a graph, and each graph is analysed using the GLaSS method, as described above. Expected time to absorption is calculated for each “unlabelled” node in each graph. Based on the distribution of t_{i}, for each graph, no filtering is required, and labels are estimated for all “unlabelled” nodes in all graphs.
In graphs containing only two labelled nodes (one Democrat leader, one Republican leader), each labelled node forms an absorbing state, and the probability of being absorbed in the Democrat state of the corresponding DTMC is considered. In graphs containing more than two labelled nodes (multiple Democrat leaders or multiple Republican leaders), labelled nodes for each party are taken to form an absorbing class, and the probability of being absorbed in the Democrat class of the corresponding DTMC is considered. For illustrative purposes, full graphs, and histograms of absorption probabilities for the 90^{th} and 110^{th} Senates are provided in Fig. 1. Histograms for all Houses and all Senates show separation between Democrat and Republican members, though some overlap between clusters does exist for some Congresses.
Using the binary classifier in GLaSS, a threshold α is chosen for each House and each Senate. If P(Y_{i}=Democrat)>α, then member i is labelled a Democrat; otherwise, member i is labelled a Republican. Estimated labels are compared to the true party affiliation for all “unlabelled” nodes in each graph. A confusion matrix is constructed for each graph, and used to calculate an F1 score, to measure the performance of GLaSS. An F1 score of 1 implies that GLaSS is able to correctly label all “unlabelled” members in the corresponding House or Senate. Plots of F1 score over time are given for the House and the Senate in Figs. 2 and 3, respectively. F1 scores calculated for the 84 graphs range from a minimum of 0.8571 (achieved by the 90^{th} Senate) to a maximum of 1 (achieved by 8 Houses and 9 Senates).
To better understand the behaviour of graphs with an F1 score of 1, absorption probabilities are standardised using the population mean and pooled variance. The difference between the lowest standardised P(Y_{i}=Democrat) among all true Democrats and the highest standardised P(Y_{i}=Democrat) among all true Republicans is calculated and plotted against time (see Figs. 2 and 3). In conjunction with plots of F1 score over time, these figures illustrate where overlap exists between Democrats and Republicans, but also by how much Democrats and Republicans are separated when they do not overlap.
Figures 2 and 3 show a notable drop in F1 score through the 1960s and 1970s, corresponding to a period where the GLaSS method is less able to determine the party affiliation of members of the House and the Senate. The causes for this drop are unclear, but represent a possible decrease in partisanship during this period. The figures also show that, over the last 10 to 15 years, partisanship in both the House and the Senate has increased significantly. During this period, the F1 scores for both the House and the Senate are constant at 1, and plots of standardised difference over time show increasing separation between Democrats and Republicans, as measured by the GLaSS method.
Sensitivity analysis
The application of data cleaning rules, described in Data, requires special care, to ensure results are not unduly affected. While some rules are applied only to clarify the structure of roll call voting networks, rules 1, 2, and 5 remove observations from the datasets used to construct each graph. To determine what impact, if any, the application of rules 1, 2, and 5 have on results, sensitivity and exploratory data analyses are performed. All data cleaning is performed sequentially; that is, rule 1 is applied before rule 2, rule 2 is applied before rule 3, etc.
Before the application of any data cleaning rules, each dataset (raw data) contains all members in the House or Senate who cast at least one vote (of any kind, not strictly “yea” or “nay”) during the meeting of that Congress, and every vote cast by every member is recorded. Rule 1 removes all recorded votes that are not strictly “yea” or “nay”. This is done to avoid misinterpreting the intention behind a vote that is not actively in favour of (“yea”) or actively against (“nay”) a proposed bill. For example, in the event that a member expects to be absent during a vote, they may informally “pair” with a member from the opposite side who will be present, forming an agreement under which neither the absent member nor the present member register a formal vote of “yea” or “nay”, though the “pair” is still recorded. Rule 2 removes all members whose party is not Democrat or Republican. This is done to avoid attempting to label Independent members and members of minor parties, who do not have leaders (or, in the case of Independents, party colleagues), and who cannot be correctly labelled as either Democrat or Republican.
Applying rule 1 to the raw data for the House and Senate does remove some members and some recorded votes. On average, the application of rule 1 reduces the number of members in the House by 0.1436%, and the number of recorded votes by 11.2780%. In the most extreme cases, the number of members in the 75^{th} house is reduced by 0.6696% (448 members reduced to 445), and the number of recorded votes in the 79^{th} House is reduced by 23.9810% (100,271 votes reduced to 76,225). On average, the application of rule 1 reduces the number of members in the Senate by 0.2448%, and the number of recorded votes by 12.3591%. In the most extreme cases, the number of members in the 79^{th} Senate is reduced by 5.5046% (109 members reduced to 103), and the number of recorded votes in the 81^{st} Senate is reduced by 29.5413% (49,595 votes reduced to 34,944). While individual members and the votes of individual members are removed by applying rule 1, no roll call votes are excluded.
Rule 2 removes further members and recorded votes. On average, the application of rule 2 further reduces the number of members in the House by 0.5348%, and the number of recorded votes by 0.3800%. In the most extreme cases, the number of members in the 75^{th} House is further reduced by 3.1461% (445 members reduced to 431), and the number of recorded votes in the 75^{th} House is further reduced by 3.3199% (54,911 votes reduced to 53,088). On average, the application of rule 2 further reduces the number of members in the Senate by 1.6379%, and the number of recorded votes by 1.1547%. In the most extreme cases, the number of members in the 75^{th} Senate is further reduced by 3.9216% (102 members reduced to 98), and the number of recorded votes in the 76^{th} Senate is further reduced by 4.1056% (19,729 votes reduced to 18,919). As with rule 1, rule 2 removes individual members and the votes of individual members, but does not remove any roll call votes.
From these exploratory data analyses, it is clear that rules 1 and 2 do not significantly reduce the number of nodes (members) in any roll call voting network. While the application of rule 1 does significantly reduce the total number of recorded votes in some Houses and Senates, the application of this rule is justified by the removal of ambiguous votes (neither “yea” nor “nay”).
This study examines partisanship trends within the House and Senate. However, applying rule 5 to roll call voting data explicitly removes votes where the Democrat leader and Republican leader vote the same way (either both “yea”, or both “nay”). That is, votes that attract a bipartisan response (support or rejection by both parties) are not included in the roll call voting networks analysed, under the assumption that they do not contribute meaningful information about the party affiliation of members. To ensure that the exclusion of these votes does not significantly affect the results of analyses using the GLaSS method, two roll call voting networks are reanalysed with agreeing votes included (votes where the Democrat and Republican leaders vote the same way). The least and most partisan roll call voting networks are chosen for analysis. By F1 score, the 90^{th} Senate is the least partisan network, and, by standardised difference, the 115^{th} House is the most partisan network.
Analysing the original 90^{th} Senate and 115^{th} House networks yields respective F1 scores of 0.8517 and 1. With agreeing votes included in the roll call voting networks, analysis with GLaSS again yields F1 scores of 0.8571 and 1, respectively. This indicates that GLaSS performs equally well with or without the inclusion of agreeing votes in roll call voting networks, and that agreeing votes contribute no meaningful information overall about the party affiliation of members, or partisanship within the House and Senate.
Figure 4 provides a visualisation of the effect of including agreeing votes on the performance of the GLaSS method. The top two histograms show the original calculated absorption probabilities for the 90^{th} Senate and 115^{th} House (without agreeing votes), while histograms in the middle row show the calculated absorption probabilities for both Congresses with agreeing votes included. From the histograms, it is clear that the inclusion of agreeing votes has affected the distribution of absorption probabilities for both Congresses. Specifically, including agreeing votes has shifted the location of both distributions towards 0.5, and reduced the spread of each distribution. However, considering pairs of histograms shows that changes in the distribution of absorption probabilities for each Congress has not significantly affected the level of overlap or separation between Democrats and Republicans. In particular, histograms for the 90^{th} Senate (top left and middle left) show that the level of overlap between parties has not significantly changed, while histograms for the 115^{th} House (top right and middle right) both show that Democrats and Republicans are entirely separated.
Scatterplots at the bottom of Fig. 4 show calculated absorption probabilities for each member, with (yaxis) and without (xaxis) agreeing votes, in the 90^{th} Senate (bottom left) and 115^{th} House (bottom right), respectively. The scatterplot for the 90^{th} Senate shows very strong linearity, indicating an almost perfect correspondence between the ordering of members (by calculated absorption probability) with and without agreeing votes. Pearson and Spearman correlations for the 90^{th} Senate are 0.9986 and 0.9978, respectively, supporting the notion that including agreeing votes has minimal impact on analyses with the GLaSS method. The scatterplot for the 115^{th} House shows weaker linearity, but Pearson and Spearman correlations of 0.9946 and 0.9581, respectively, again support the notion that agreeing votes do not significantly affect results. Further, as in the histograms for the 115^{th} House, Democrats and Republicans are completely separated, both vertically and horizontally, in the scatterplot. Based on the results of these sensitivity and exploratory data analyses, there is no evidence that the data cleaning rules applied to US roll call voting networks have significantly impacted analyses with the GLaSS method, or biased results towards detecting partisanship trends within the House and Senate.
The effects of party affiliation and control on partisanship
To better understand the factors that may influence partisanship within the House and the Senate, as measured by F1 scores calculated for the GLaSS method, two regression models are fitted. In particular, the models are fitted to investigate whether partisanship in the House and Senate (as measured by F1 score) can be reliably predicted by simple, extraneous factors, or whether the findings of analysis using the GLaSS method are nontrivial. The first model examines the effect of three factors on F1 score; which party holds a majority in the House, which party holds a majority in the Senate, and which party holds the Presidency. Each factor comprises two levels  in each instance, Democrats or Republicans are in majority in the House, Democrats or Republicans are in majority in the Senate, and the sitting President is a Democrat or Republican  and all twoway and threeway interaction terms are considered. Thus, the full model is
where F is F1 score, H is the party in majority in the House, S is the party in majority in the Senate, P is the party affiliation of the sitting President, and × denotes an interaction between the categorical variables. The model is fitted for F1 scores from the House and the Senate separately, but no significant predictors are identified in either case.
In the second model, the number of factors is reduced. For the House, two binary factors are considered; whether the party that holds a majority in the Senate is the same as the party that holds a majority in the House, and whether the party that holds the Presidency is the same as the party that holds a majority in the House. An equivalent model is specified for the Senate, and twoway interactions are considered in both cases. For the House, the full model is
where S^{′} and P^{′} denote whether the party in control of the Senate and the Presidency, respectively, is the same as the party in control of the House. For the Senate, the full model is
where H^{′} and P^{′} denote whether the party in control of the House and the Presidency, respectively, is the same as the party in control of the Senate. In (8) and (9), F denotes F1 score for the House and Senate, respectively, and × is as previously defined. Again, no significant predictors of F1 are identified for the House or the Senate. Thus, while partisanship has clearly varied over time in both the House and the Senate, it appears that this variation is not explained by which party controls each branch of the US Government, or the interplay between controlling parties, lending credence to the notion that the findings about partisanship, by analysis using the GLaSS method, are nontrivial.
Conclusions
Graph labelling is a fundamental task within network science, with diverse applications. This work builds upon a previously introduced (Glonek et al. 2018) semisupervised graph labelling method using random walks to absorption, the GLaSS method, and uses it to analyse a collection of undirected political networks from the United States House of Representatives and Senate. In these networks, the GLaSS method is used to estimate the party affiliation of members of the House and the Senate based on roll call voting data. The GLaSS method shows universally strong performance in analysing these networks, returning F1 scores in excess of 0.85 for all 84 graphs, even where graphs display significant overlap between the two communities.
In 20% of cases (17 of the 84 networks analysed), GLaSS returns an F1 score of 1, indicating perfect labelling of all members in the House or the Senate based on random walks to absorption in these roll call voting networks. Previous work evaluating GLaSS showed that it outperormed other supervised and unsupervised random walkbased graph labelling methods in analysing a small series of undirected political networks (Glonek et al. 2018). Results in this work provide more evidence that continued investigation and evaluation of the GLaSS method is warranted. Future work will extend this work to examine the performance of the GLaSS method for graphs of varying size, connectedness, density, and with different numbers of known labels. Extending the GLaSS method to label graphs in the general kcommunity setting, and graphs with fewer labelled nodes than clusters, is of particular interest, as is benchmarking the performance of the GLaSS method against other graph labelling methods.
This work also provides reinforcing empirical evidence of increasing partisanship in United States politics (Andris et al. 2015; Poole and Rosenthal 1984), while also representing the first such analysis to use a random walkbased graph labelling method. Analysis of roll call voting data, in both the House and the Senate, using GLaSS, shows that the Democrat and Republican parties have undergone a recent rapid separation. The party affiliation of members can now be entirely predicted by their voting trends, where previously some uncertainty existed. This raises important questions about the causes of the recent and increasing polarisation in both the House and the Senate, as well as what factors historically decreased political partisanship in Congresses with lower F1 scores as calculated by GLaSS. Regression modelling indicates that variations in partisanship cannot be explained by which parties control the House, the Senate, and the Presidency.
In an applied setting, future work will also use GLaSS to further explore social, political, and other networks. Online and socialmedia networks are of particular interest, with a growing body of work examining the structure, dynamics, and polarisation of online social networks (Fish et al. 2016; Garimella and Weber 2017; Rizoiu et al. 2018; Shai et al. 2017). Future applied work with GLaSS will examine these characteristics for new and existing graphs. The roll call voting data presented here have a clear longitudinal structure; the construction of a metagraph from graphs of individual Houses or Senates and extension of the GLaSS method to analyse metagraphs is also an area for future work.
Availability of data and materials
MG is supported by an Australian Government Research Training Program Scholarship, as well as scholarships provided by the University of Adelaide and Data to Decisions CRC. All authors thank Data to Decisions CRC and the ARC Centre of Excellence for Mathematical and Statistical Frontiers for their financial support^{Footnote 6}.
Notes
 1.
Each meeting of Congress begins on January 3 and runs for a period of two years.
 2.
Primary data is available from Voteview < https://voteview.com/data >, with supporting datasets and documented code made available on Figshare < https://adelaide.figshare.com/articles/ANS_CN2018_Special_Issue/7869311 >.
 3.
Consequently, while the House has 435 seats and the Senate has 100 seats, graphs may contain more than 435 and 100 nodes, respectively.
 4.
Conventionally, the Speaker of the House participates in very few votes.
 5.
Prior to serving as Speaker, such members are generally party leaders, and at least active voting members of Congress.
 6.
Primary data is available from Voteview < https://voteview.com/data >, with supporting datasets and documented code made available on Figshare < https://adelaide.figshare.com/articles/ANS_CN2018_Special_Issue/7869311 >.
References
Andris, C, Lee D, Hamilton MJ, Martino M, Gunning CE, Selden JA (2015) The rise of partisanship and supercooperators in the US House of Representatives. PLoS ONE 10(4):e0123507.
Azran, A (2007) The rendezvous algorithm: Multiclass semisupervised learning with markov random walks In: Proceedings of the 24th international conference on Machine learning (ICML), 49–56.
Csardi, G, Nepusz T (2006) The igraph software package for complex network research In: InterJournal Complex Systems 1695. https://igraph.org. Accessed 28 Aug 2018.
Fish, B, Huang Y, Reyzin L (2016) Recovering social networks by observing votes In: Proceedings of the 2016 International Conference on Autonomous Agents & Multiagent Systems, 376–384.
Fortunato, S (2010) Community detection in graphs. Phys Rep 486(3–5):75–174.
Garimella, K, Weber I (2017) A longterm analysis of polarization on Twitter. arXiv preprint. arXiv:1703.02769.
Glonek, M, Tuke J, Mitchell L, Bean N (2018) GLaSS: Semisupervised graph labelling with markov random walks to absorption In: Proceedings of the 7th International Conference on Complex Networks and Their Applications, 304–315.
Grinstead, CM, Snell JL (2012) Introduction to Probability. Am Math Soc:416–422.
Hamilton, W, Ying Z, Leskovec J (2017) Inductive representation learning on large graphs In: Advances in Neural Information Processing Systems, 1024–1034.
Hassan, A, Radev D (2010) Identifying text polarity using random walks In: Proceedings of the 48th Annual Meeting of the Association for Computational Linguistics (ACL), 395–403.
Lewis, JB, Poole K, Rosenthal H, Boche A, Rudkin A, Sonnet L (2019) Voteview: congressional rollcall votes database. https://voteview.com/data. Accessed 13 Feb 2019.
Perozzi, B, AlRfou R, Skiena S (2014) Deepwalk: Online learning of social representations In: Proceedings of the 20th ACM SIGKDD international conference on knowledge discovery and data mining, 701–710.
Pons, P, Latapy M (2005) Computing communities in large networks using random walks In: International symposium on computer and information sciences, 284–293.
Poole, KT, Rosenthal H (1984) The polarization of American politics. J Pol 46(4):1061–79.
Poole, KT, Rosenthal H (1985) A spatial model for legislative roll call analysis. Am J Polit Sci 29(2):357–384.
Poole, KT, Rosenthal H (2001) DNOMINATE after 10 years: A comparative update to Congress: A politicaleconomic history of rollcall voting. Legis Stud Q 26(1):5–29.
Rizoiu, MA, Graham T, Zhang R, Zhang Y, Ackland R, Xie L (2018) #debatenight: The role and influence of socialbots on twitter during the 1st us presidential debate. arXiv preprint. arXiv:1802.09808.
Shai, S, Stanley N, Granell C, Taylor D, Mucha PJ (2017) Case studies in network community detection. arXiv preprint. arXiv:1705.02305.
Talukdar, PP, Reisinger J, Paşca M, Ravichandran D, Bhagat R, Pereira F (2008) Weaklysupervised acquisition of labelled class instances using graph random walks In: Proceedings of the Conference on Empirical Methods in Natural Language Processing, 582–590.
Victor, JN, Montgomery AH (2017) The Oxford Handbook of Political Networks(Lubell M, ed.). Oxford University Press.
Ward, MD, Stovel K, Sacks A (2011) Network analysis and political science. Ann Rev Polit Sci 14:245–264.
Waugh, AS, Pei L, Fowler JH, Murcha PJ, Porter MA (2009) Party polarization in congress: A network science approach. arXiv preprint. arXiv:0907.3509.
Zhou, H, Lipkowsky R (2004) Network brownian motion: A new method to measure vertexvertex proximity and to identify communities and subcommunities In: International conference on computational science (ICCS), 1062–1069.
Acknowledgements
MG acknolwedges the support received through the provision of scholarships by the University of Adelaide and Data to Decisions CRC. All authors thank Data to Decisions CRC and the ARC Centre of Excellence for Mathematical and Statistical Frontiers for their financial support.
Author information
Affiliations
Contributions
All authors participated in the conception and design of this work. MG prepared and analysed the data and drafted the manuscript. All authors critically reviewed the manuscript and approved its final form. All authors read and approved the final manuscript.
Corresponding author
Correspondence to Max Glonek.
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Glonek, M., Tuke, J., Mitchell, L. et al. Semisupervised graph labelling reveals increasing partisanship in the United States Congress. Appl Netw Sci 4, 62 (2019). https://doi.org/10.1007/s4110901901855
Received:
Accepted:
Published:
Keywords
 Community detection
 Graph labelling
 Random walk
 Markov chain
 Political networks