Fixed: Test for flattened documents
Added: check if a node of a relation already drawn