Mathematical graphs library