Converting tables into graphs (Advanced)