A Graph of the Constitution of India
The constitution.ipynb notebook documents the creation of a graph of the articles of the Constitution linked to each other via mentions. Various graph metrics can be calculated on the resulting graph. That would be enough to satisfy graph theoretic curiousity, but since we are already here, we might as well take it a little further.
By making each article into a note we can piggyback on the functionalities of Obsidian to get a UI to interact with the Constitution in a novel way.
The initial set of notes for this was created automatically (refer concluding code in the notebook). Editing was required for the parts where the code failed. And then the parts, schedules, and appendices were added and linked manually.
The folder to be opened as a vault in Obsidian is at obsidian/. This same folder is also zipped to create constitution.zip. You can directly download just this file from here.
Note: Source text for the Constitution was taken from https://web.archive.org/web/20081022080607/http://www.commonlii.org/in/legis/const/2004/index.html and is probably outdated. This is more an exploration of form than a serious publication.
