Graph-based notetaking system