Lightweight graph library