History of congress_committees
The changes to the source code of this entry in the repository, newest first, each with the differences it made to the entry's files. They are also listed on GitLab.
[entries] Add the date when each entry was added, and remove icon_hash beff7c9
The dates are those of the commits that first added the entries' files (2020-08-11 for the entries of the initial commit); renamed entries keep the date of their first name. Changed: none
diff --git a/entries/congress_committees/__init__.py b/entries/congress_committees/__init__.py
index 42c38a4..b4e691a 100644
--- a/entries/congress_committees/__init__.py
+++ b/entries/congress_committees/__init__.py
@@ -34,7 +34,7 @@ url = ['https://www.cs.cornell.edu/~arb/data/house-committees/',
'https://www.cs.cornell.edu/~arb/data/senate-committees/']
citation = [('C. Stewart III, J. Woon, "Congressional Committee Assignments, 103rd to 114th Congresses, 1993-2017: House" and "...: Senate" (2017)', 'https://web.mit.edu/17.251/www/data_page.html'),
('P. S. Chodrow, N. Veldt, A. R. Benson, "Generative hypergraph clustering: From blockmodels to modularity." Science Advances 7(28), eabh1303 (2021)', 'https://doi.org/10.1126/sciadv.abh1303')]
-icon_hash = None
+date_added = '2026-10-25'
upstream_license = None
upstream_prefix = 'gdrive://'
files = []
[entries] Prefix the properties in the descriptions with (Node), (Edge) or (Graph) bc3dbbd
The lists of properties at the end of the descriptions marked edge properties with "Edge" but left node properties unmarked, or grouped them in "Nodes: `a`, ...; `b`, ..." items, so the kind of a property was often unclear. Every item now starts with (Node), (Edge) or (Graph), followed by the property names, a colon and the explanation, one item per property or group of properties; qualifications (kinds of nodes, networks) follow the names in parentheses. Properties that were only named got a short explanation, and a few items that named the wrong kind of property were corrected.
diff --git a/entries/congress_committees/__init__.py b/entries/congress_committees/__init__.py
index 23e7f12..42c38a4 100644
--- a/entries/congress_committees/__init__.py
+++ b/entries/congress_committees/__init__.py
@@ -26,8 +26,9 @@ description = """Bipartite networks of members of the US Congress and the congre
The networks have the following properties:
-- `is_committee`: whether the node is a committee (in a given Congress), otherwise a legislator.
-- Legislator nodes: `name`, the name of the legislator; `party`, the political party of the legislator, "Democrat" or "Republican" (the source data only distinguish these two parties)."""
+- (Node) `is_committee`: whether the node is a committee (in a given Congress), otherwise a legislator.
+- (Node) `name` (legislators): the name of the legislator.
+- (Node) `party` (legislators): the political party of the legislator, "Democrat" or "Republican" (the source data only distinguish these two parties)."""
tags = ['Political', 'Social', 'Governance', 'Affiliation', 'Unweighted', 'Metadata']
url = ['https://www.cs.cornell.edu/~arb/data/house-committees/',
'https://www.cs.cornell.edu/~arb/data/senate-committees/']
[entries] Remove unneeded code from the entries 2c69f19
Unneeded "global files" statements, unused imports and variables, f-strings without placeholders, duplicate keys in foodweb_little_rock (keeping the order and the values used), and the second definition of get_lines() in twitter_higgs. Nothing changes in the networks or descriptions. Changed: none
diff --git a/entries/congress_committees/__init__.py b/entries/congress_committees/__init__.py
index 53f1161..23e7f12 100644
--- a/entries/congress_committees/__init__.py
+++ b/entries/congress_committees/__init__.py
@@ -52,7 +52,6 @@ def fetch_upstream(force=False):
@coerce_props()
@annotate()
def parse(alts=None):
- global files
name = __name__.split(".")[-1]
for fnames, alt, fmt in files:
if alts is not None and alt not in alts:
[entries] New entry: congress_committees 0f51b3c
diff --git a/entries/congress_committees/__init__.py b/entries/congress_committees/__init__.py
new file mode 100644
index 0000000..53f1161
--- /dev/null
+++ b/entries/congress_committees/__init__.py
@@ -0,0 +1,74 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2020-2026 Tiago de Paula Peixoto <tiago@skewed.de>
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option) any
+# later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Affero General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
+
+from .. import *
+
+title = "US Congress committee memberships (1993-2017)"
+description = """Bipartite networks of members of the US Congress and the congressional committees they were assigned to, from the 103rd Congress (1993) to 2017. The data derive from the committee assignment records compiled by Charles Stewart III and Jonathan Woon, which record the membership of all committees of each chamber in each Congress, with dates of assignment and termination. Each committee node corresponds to the membership of one committee during one Congress (so the same committee appears once per Congress), and is connected to the legislators assigned to it during that Congress. A legislator listed more than once for the same committee in the source data is connected to it only once. Committee names and Congress numbers are not included.
+
+- `house`: committees of the House of Representatives and their members.
+- `senate`: committees of the Senate and their members.
+
+The networks have the following properties:
+
+- `is_committee`: whether the node is a committee (in a given Congress), otherwise a legislator.
+- Legislator nodes: `name`, the name of the legislator; `party`, the political party of the legislator, "Democrat" or "Republican" (the source data only distinguish these two parties)."""
+tags = ['Political', 'Social', 'Governance', 'Affiliation', 'Unweighted', 'Metadata']
+url = ['https://www.cs.cornell.edu/~arb/data/house-committees/',
+ 'https://www.cs.cornell.edu/~arb/data/senate-committees/']
+citation = [('C. Stewart III, J. Woon, "Congressional Committee Assignments, 103rd to 114th Congresses, 1993-2017: House" and "...: Senate" (2017)', 'https://web.mit.edu/17.251/www/data_page.html'),
+ ('P. S. Chodrow, N. Veldt, A. R. Benson, "Generative hypergraph clustering: From blockmodels to modularity." Science Advances 7(28), eabh1303 (2021)', 'https://doi.org/10.1126/sciadv.abh1303')]
+icon_hash = None
+upstream_license = None
+upstream_prefix = 'gdrive://'
+files = []
+for _alt, _id in [("house", '1402DFpsii-mqeBGk2mf-tDj8P-6Sk6tr'),
+ ("senate", '17ZRVwki_x_C_DlOAea5dPBO7Q4SRTRRw')]:
+ files.append((tuple(f"{_id}:zip:{_alt}-committees/{x}-{_alt}-committees.txt"
+ for x in ["hyperedges", "node-names", "node-labels",
+ "label-names"]),
+ _alt, None))
+
+def fetch_upstream(force=False):
+ return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
+ force)
+
+@cache_network()
+@coerce_props()
+@annotate()
+def parse(alts=None):
+ global files
+ name = __name__.split(".")[-1]
+ for fnames, alt, fmt in files:
+ if alts is not None and alt not in alts:
+ continue
+ with ExitStack() as stack:
+ fs = [stack.enter_context(open_upstream_file(name, fn, "r")) for fn in fnames]
+ # repeated members in a committee are collapsed by bipartite_graph
+ groups, members, n = read_hyperedges(fs[0], sep=",")
+ names = [l.rstrip("\n") for l in fs[1]]
+ party = read_ints(fs[2])
+ pnames = [l.strip() for l in fs[3] if l.strip() != ""]
+ N = max(len(names), members.max() + 1)
+ g = bipartite_graph(groups, members, n, N, "is_committee")
+ g.vp.name = g.new_vp("string")
+ g.vp.party = g.new_vp("string")
+ for v, (lname, p) in enumerate(zip(names, party)):
+ g.vp.name[v] = lname
+ g.vp.party[v] = pnames[p - 1]
+ yield alt, g