languages.py: only include languages with relationships when generating the dot file